commit:     005122b3fd5ec2dcabd1ce9a717937ab6950b1b0
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 22 17:44:06 2023 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed Mar 22 17:44:06 2023 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=005122b3

probe-mirmon: fix warning

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 probe-mirmon | 1 +
 1 file changed, 1 insertion(+)

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;

Reply via email to