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: