Improve check output
authorJoey Schulze <joey@infodrom.org>
Sat, 3 May 2014 19:49:55 +0000 (21:49 +0200)
committerJoey Schulze <joey@infodrom.org>
Sat, 3 May 2014 19:49:55 +0000 (21:49 +0200)
check_ssl_certificate [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 641dff7..bc96d45
@@ -130,7 +130,7 @@ close(OPENSSL);
 $date =~ s/ +/ /g;
 
 my ($month, $day, $hour, $min, $sec, $year, $tz) = split(/[\s+|:]/, $date);
-print "m=$month, d=$day, h=$hour, m=$min, s=$sec, y=$year, z=$tz\n";
+printf "Expiry date: %d %s %d, %d:%02d:%02d %s\n", $day, $month, $year, $hour, $min, $sec, $tz;
 
 my $daysLeft = int((timegm($sec, $min, $hour, $day, $months{$month}, $year - 1900) - time()) / 86400);