]> _ Git - cubist_util.git/commitdiff
wip #7780 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 7 Oct 2025 11:40:02 +0000 (13:40 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 7 Oct 2025 11:40:02 +0000 (13:40 +0200)
src/CommandLine.php

index cf237d08a4331f035877c9a684f8b8c8ff6ea69f..d6293d51e43c790b5d729b97405109e4e0ba715a 100644 (file)
@@ -23,7 +23,6 @@ class CommandLine
     protected $ssh = null;
     protected $longArgSeparator = '=';
     protected $timeout = 0;
-    protected $cpulimit = 0;
     protected $sudo = false;
     protected $unique = false;
     protected $uniqueCommand = null;
@@ -267,10 +266,6 @@ class CommandLine
             $commande = 'timeout ' . $this->getTimeout() . ' ' . $commande;
         }
 
-        if ($this->getCPULimit() > 0) {
-            $commande = 'cpulimit -l ' . $this->getCPULimit() . ' ' . $commande;
-        }
-
         if ($this->nohup) {
             $commande = 'nohup ' . $commande;
         }
@@ -428,22 +423,6 @@ class CommandLine
         $this->unique = $unique;
     }
 
-    /**
-     * @param int $cpulimit
-     */
-    public function setCPULimit(int $cpulimit): void
-    {
-        $this->cpulimit = $cpulimit;
-    }
-
-    /**
-     * @return int
-     */
-    public function getCPULimit(): int
-    {
-        return $this->cpulimit;
-    }
-
     public function ddCommand()
     {
         $this->_preExecute();