Skip to content

Commit

Permalink
Correct logic check for Windows compatibility related to sys_getload_…
Browse files Browse the repository at this point in the history
…avg function
  • Loading branch information
DivineOmega committed Nov 9, 2018
1 parent 367ca27 commit 46db7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DOFileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function get($key)
return false;
}

if (!function_exists('sys_getloadavg')) {
if (!function_exists('sys_getloadavg') && $this->config['unixLoadUpperThreshold'] !== -1) {
throw new Exception('Your PHP installation does not support `sys_getloadavg` (Windows?). Please set `unixLoadUpperThreshold` to `-1` in your DOFileCache config.');
}

Expand Down

0 comments on commit 46db7c7

Please sign in to comment.