diff options
author | 2023-03-22 10:44:06 -0700 | |
---|---|---|
committer | 2023-03-22 10:44:06 -0700 | |
commit | 005122b3fd5ec2dcabd1ce9a717937ab6950b1b0 (patch) | |
tree | 181a81af9f24a2c01173b0c97aa655a749db74b1 | |
parent | probe-mirmon: cleanup (diff) | |
download | gentoo-mirrorstats-005122b3fd5ec2dcabd1ce9a717937ab6950b1b0.tar.gz gentoo-mirrorstats-005122b3fd5ec2dcabd1ce9a717937ab6950b1b0.tar.bz2 gentoo-mirrorstats-005122b3fd5ec2dcabd1ce9a717937ab6950b1b0.zip |
probe-mirmon: fix warning
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | probe-mirmon | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/probe-mirmon b/probe-mirmon index 233b6a3..cfade50 100755 --- a/probe-mirmon +++ b/probe-mirmon @@ -117,6 +117,7 @@ sub handle_rsync { sub munge_date { no warnings 'numeric'; ## no critic (TestingAndDebugging::ProhibitNoWarnings) my $timestr = shift; + return -1 if !$timestr; my $timestamp = int($timestr); my $year2020 = 1577836800; my $year2038 = 2145916800; |