From 4696aea22e8b0ab75fe894f8e8d488aed2d7e74d Mon Sep 17 00:00:00 2001 From: iliajie Date: Sat, 4 Feb 2023 12:50:41 +0200 Subject: [PATCH] Fix `$ago_secs` test --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 659ca9e74..f75dfcd13 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -2012,7 +2012,7 @@ if (%{$opts}) { my $ago; my $ago_secs = time() - $secs; eval "use Time::Seconds"; - if (!$@ && $ago_secs >= 1) { + if (!$@ && $ago_secs) { my $ago_obj = Time::Seconds->new($ago_secs); $ago = { "seconds" => int($ago_obj->seconds),