summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96244f5)
raw | patch | inline | side by side (parent: 96244f5)
author | Sven Velt <sven@velt.de> | |
Mon, 14 Dec 2009 23:11:40 +0000 (00:11 +0100) | ||
committer | Sven Velt <sven@velt.de> | |
Mon, 14 Dec 2009 23:11:40 +0000 (00:11 +0100) |
nagixsc_xml2nagios.py | patch | blob | history |
diff --git a/nagixsc_xml2nagios.py b/nagixsc_xml2nagios.py
index 868bca5e49630ff662d187d5ee04a4b1845330c7..58d5c0707e9bdb86a79bdc27ea52cdc7bbec7cbf 100755 (executable)
--- a/nagixsc_xml2nagios.py
+++ b/nagixsc_xml2nagios.py
##############################################################################
-now = int(datetime.datetime.now().strftime('%s'))
-
# Get URL or file
doc = read_xml(options)
+# Now timestamp AFTER getting the XML file
+now = int(datetime.datetime.now().strftime('%s'))
+
# Check XML against DTD
if options.schemacheck: