From f3a86f081c704d556678154634cfe5952e972882 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 13 Mar 2025 12:07:19 +0100 Subject: refresh versions --- check.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'check.php') 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']])) { -- cgit