Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 1af1b0431ef938c84b02f47a25397b91 > files > 2

nagios-check_syncrepl-20080409-4mdv2009.0.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):