ThrottledDevice: speed up quick reactivation
[~helmut/onoff.git] / onoff / process.py
index 68deb97..2b75bda 100644 (file)
@@ -57,7 +57,7 @@ class OnoffProcess(OnoffDevice):
         logger.info("starting command %s", " ".join(self.command))
         self.pid, self.watch = spawn_child(self.command, self.process_died)
         logger.debug("started as pid %d", self.pid)
-        self.starting = GObject.timeout_add(1000 * self.start_wait,
+        self.starting = GObject.timeout_add(int(1000 * self.start_wait),
                                             self.process_started)
         self.changestate(self.state)