tdamhs.py: Don't spam stdout when looping. - tordam - A library for peer discovery inside the Tor network HTML git clone https://git.parazyd.org/tordam DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 2b43a7b2ad6b6652dd63df16dc33816fa02ca617 DIR parent e7b4b62f999ccb7afe5cc64a2eeb1ac3968f459f HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 13 Dec 2017 03:15:40 +0100 damhs.py: Don't spam stdout when looping. Diffstat: M python/damhs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/python/damhs.py b/python/damhs.py t@@ -46,11 +46,10 @@ def main(): service = start_hs(ctl=ctl, ktype=ktype, kcont=kcont, portmap=portmap) stdout.write('Started HS at %s.onion\n' % service.service_id) + stdout.write('OK\n') stdout.flush() while True: - stdout.write('OK\n') - stdout.flush() - sleep(10) + sleep(60) if __name__ == '__main__':