mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix $ago_secs test
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user