summaryrefslogtreecommitdiffstats
path: root/check.php
diff options
context:
space:
mode:
Diffstat (limited to 'check.php')
-rwxr-xr-xcheck.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/check.php b/check.php
index 5a1e1ae6..9f406c5b 100755
--- a/check.php
+++ b/check.php
@@ -176,10 +176,10 @@ function delta($ref, $loc) {
if ($d >= 60) {
$d /= 60;
if ($d >= 60) {
- $d /= 60;
+ $d = (int)($d / 60);
if ($d >= 24) {
- $d /= 24;
- $unit = 'day';
+ $d = (int)($d / 60);
+ $unit = 'DAY';
} else {
$unit = 'hour';
}
@@ -192,7 +192,7 @@ function delta($ref, $loc) {
if ($d > 1) {
$unit .= 's';
}
- return sprintf("%s :%3d %s ago", date('r', $loc), $d, $unit);
+ return sprintf("%s :%3d %s", date('r', $loc), $d, $unit);
}
if (isset($_GET['mirror']) && isset($repos[$_GET['mirror']])) {