Skip to content

Commit 81d9662

Browse files
committed
Improves definition of high CPU load
1 parent 24dd84c commit 81d9662

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ $command[] = new DevCoding\Mac\Update\Command\DownloadCommand();
1414
$command[] = new DevCoding\Mac\Update\Command\InstallCommand();
1515
$command[] = new DevCoding\Mac\Update\Command\SummaryCommand();
1616
$command[] = new DevCoding\Mac\Update\Command\WaitCommand();
17-
$app = new Application('MacUpdate', 'v1.6');
17+
$app = new Application('MacUpdate', 'v1.6.1');
1818
$app->addCommands($command);
1919
$app->run();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"DevCoding\\Mac\\Update\\": "src"
1313
}
1414
},
15-
"version": "1.6",
15+
"version": "1.6.1",
1616
"require": {
1717
"php": "^7.0",
1818
"ext-json": "*",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/macupdate.phar

-41 Bytes
Binary file not shown.

src/Command/AbstractUpdateConsole.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,15 @@ protected function isEncryptingFileVault()
413413

414414
/**
415415
* Returns an opinionated determination of whether the CPU load is 'high' based on the current load and the number of
416-
* CPU cores. Loads greater than half the number of CPU cores are considered high. This intentinoally conservative.
416+
* CPU cores. Loads greater than the number of CPU cores are considered high.
417417
*
418418
* @return bool
419419
*/
420420
protected function isLoadHigh()
421421
{
422422
if (function_exists('sys_getloadavg'))
423423
{
424-
$cores = $this->getCpuCores() / 2;
424+
$cores = $this->getCpuCores();
425425
$load = sys_getloadavg();
426426

427427
return isset($load[0]) && (float) $load[0] > $cores;

0 commit comments

Comments
 (0)