[svn] commit: r2502 - /branches/trac191/src/bin/stats/stats_stub.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jul 13 06:06:47 UTC 2010


Author: naokikambe
Date: Tue Jul 13 06:06:47 2010
New Revision: 2502

Log:
A Minor Change for stats_stub.py : stop the random execution of send_comand_xxx

Modified:
    branches/trac191/src/bin/stats/stats_stub.py.in

Modified: branches/trac191/src/bin/stats/stats_stub.py.in
==============================================================================
--- branches/trac191/src/bin/stats/stats_stub.py.in (original)
+++ branches/trac191/src/bin/stats/stats_stub.py.in Tue Jul 13 06:06:47 2010
@@ -21,7 +21,6 @@
 import sys; sys.path.append ('@@PYTHONPATH@@')
 import os
 import time
-import random
 from optparse import OptionParser, OptionValueError
 from isc.config.ccsession import ModuleCCSession, create_command, parse_answer, parse_command, create_answer
 from isc.cc import Session, SessionError
@@ -123,11 +122,8 @@
         stub.send_command("status", None)
         boss.send_command()
         while True:
-            rnd = int(random.random() * 2)
-            if rnd:
-                auth.send_command_udp()
-            else:
-                auth.send_command_tcp()
+            auth.send_command_udp()
+            auth.send_command_tcp()
             time.sleep(1)
 
     except OptionValueError:




More information about the bind10-changes mailing list