Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > ad76d27c8293a70aed586441d3123b01 > files > 3

nagios-check_syncrepl-20080409-9.mga3.src.rpm

--- check_syncrepl.py~	2008-09-25 16:18:37.000000000 +0200
+++ check_syncrepl.py	2008-09-25 16:19:01.000000000 +0200
@@ -150,7 +150,7 @@
     
   This function returns a datetime object instance
   """
-  gentime = re.sub('Z.*$','',contextCSN)
+  gentime = re.sub('(\.\d{6})?Z.*$','',contextCSN)
   return datetime.datetime.fromtimestamp(time.mktime(time.strptime(gentime,"%Y%m%d%H%M%S")))
 
 def threshold_to_datetime(threshold):