From 717f50539fe4d5d6ac4af5d117b05ba07ce71b89 Mon Sep 17 00:00:00 2001
From: madsmpedersen <m@madsp.dk>
Date: Mon, 18 Apr 2016 11:14:25 +0200
Subject: [PATCH] auto_status_update -> update interval

---
 wetb/hawc2/simulation.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/wetb/hawc2/simulation.py b/wetb/hawc2/simulation.py
index c45a87d..aae4a60 100755
--- a/wetb/hawc2/simulation.py
+++ b/wetb/hawc2/simulation.py
@@ -108,10 +108,11 @@ class Simulation(object):
         self.host = LocalSimulationHost(self)
 
 
-    def start(self, auto_status_update=True):
+    def start(self, update_interval=1):
         """Start non blocking distributed simulation"""
         self.is_simulating = True
-        if auto_status_update:
+        if update_interval > 0:
+            self.updateStatusThread.interval = update_interval
             self.updateStatusThread.start()
         self.non_blocking_simulation_thread.start()
 
-- 
GitLab