From c95e06349a629fdc69629f54645c7461deab1041 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Fri, 24 Jul 2020 11:45:34 -0400 Subject: [PATCH] Update status.php --- admin/status.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/status.php b/admin/status.php index 9a2d1b9..8254c8c 100644 --- a/admin/status.php +++ b/admin/status.php @@ -16,10 +16,10 @@ function secondsToDHMS($seconds) { $p = number_format($c,2)*100; $per_minute = intval($_GET['last']) - $row_cnt; $left = $expected - $row_cnt; - $minutes = round($left/$per_minute); + $minutes = abs(round($left/$per_minute)); $human = secondsToDHMS($minutes*60); echo '

'.date('r').'

'.number_format($row_cnt).' out of '.number_format($expected).' '.$p.'% done

'; - echo "

$per_minute Per Minute

$left Rows Left

$human Left

"; + echo "

$per_minute Per Minute

$left Rows Left

$human Left ($minutes minutes)

"; echo ''.$p.'% loaded'; } -- 2.20.1