[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Nicolas DUPEUX
nicolas.dupeux at arkea.com
Tue Feb 28 22:19:02 UTC 2012
The following commit has been merged in the debian/master branch:
commit 7292326062cbc2570291ee4f7a2765e131bbe5b2
Author: Nicolas DUPEUX <nicolas.dupeux at arkea.com>
Date: Mon Feb 6 13:53:30 2012 +0100
Be consistent with reference implementation
diff --git a/shinken/modules/nsca.py b/shinken/modules/nsca.py
index 2420b44..57ea9bc 100644
--- a/shinken/modules/nsca.py
+++ b/shinken/modules/nsca.py
@@ -100,7 +100,7 @@ class NSCA_arbiter(BaseModule):
128-131 : unix timestamp
'''
iv = ''.join([chr(self.rng.randrange(256)) for i in xrange(128)])
- init_packet = struct.pack("!128sI", iv, int(time.mktime(time.gmtime())))
+ init_packet = struct.pack("!128sI", iv, int(time.time()))
socket.send(init_packet)
return iv
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list