Ottomata has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/63669


Change subject: Fixing one more PacketLossLogtailer error
......................................................................

Fixing one more PacketLossLogtailer error

Change-Id: I01d03a9c1503ebbbcac28090b2dae3496d26f509
---
M files/misc/PacketLossLogtailer.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/69/63669/1

diff --git a/files/misc/PacketLossLogtailer.py 
b/files/misc/PacketLossLogtailer.py
index 42e3d99..4853065 100644
--- a/files/misc/PacketLossLogtailer.py
+++ b/files/misc/PacketLossLogtailer.py
@@ -28,11 +28,12 @@
         '''This function should initialize any data structures or variables
         needed for the internal state of the line parser.'''
         self.last_update_time = time.time()
+        self.day_in_seconds = 24 * 60 * 60
         self.reset_state()
         self.lock = threading.RLock()
+
         # a list of rolematchers which are simple object to determine the role 
of a particular server
         # this list is obtained from crawling noc.wikimedia.org/pybal and 
parse the available configurations
-        self.day_in_seconds = 24 * 60 * 60
         self.matchers = rolematcher.init()
         # this is what will match the packet loss lines
         # packet loss format :

-- 
To view, visit https://gerrit.wikimedia.org/r/63669
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I01d03a9c1503ebbbcac28090b2dae3496d26f509
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <o...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to