Parity operation enhancements

This commit is contained in:
bergware
2022-02-12 14:37:33 +01:00
parent 52a873d4a5
commit be75459e9c
+1 -1
View File
@@ -103,7 +103,7 @@ while (true) {
$timestamp = date('Y',$var['sbSynced2']).' '.str_replace(['.0','.'],[' ',' '],date('M.d H:i:s',$var['sbSynced2']));
if (new_parity_log($log,$timestamp)) {
$idle = []; while (count($synced)>1) $idle[] = array_pop($synced)-array_pop($synced);
[$action,$size] = explode(',',file_get_contents($resync));
[$action,$size] = my_explode(',',@file_get_contents($resync));
$duration = $var['sbSynced2']-$sbSynced;
$status = $var['sbSyncExit'];
$speed = $status==0 ? my_scale($size*1024/($duration-array_sum($idle)),$unit,1)." $unit/s" : 0;