mirror of
https://github.com/unraid/webgui.git
synced 2026-01-19 08:00:24 -06:00
Parity log optimization
This commit is contained in:
@@ -37,7 +37,7 @@ session_destroy();
|
||||
|
||||
function new_parity_log($timestamp) {
|
||||
global $log;
|
||||
return file_exists($log) ? (substr_compare(exec("tail -1 $log"),$timestamp,0,strlen($timestamp))==0 ? false : true) : true;
|
||||
return file_exists($log) ? explode('|',exec("tail -1 $log"))[0]!=$timestamp : true;
|
||||
}
|
||||
function my_clock($time) {
|
||||
if (!$time) return _('less than a minute');
|
||||
|
||||
Reference in New Issue
Block a user