diff options
author | Christian Franke <nobody@nowhere.ws> | 2013-03-18 01:14:18 +0100 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2013-03-18 01:14:18 +0100 |
commit | 42979379e37bbf08af8a0725f2d54748f2858699 (patch) | |
tree | 8b1a86098102e9ccfda2abe2997654d424089337 /osc2light.py | |
parent | a99a574cae03541c75918b6874b6a05405ee8469 (diff) |
rename clock.py to linux.py and add if_nametoindex
Diffstat (limited to 'osc2light.py')
-rw-r--r-- | osc2light.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/osc2light.py b/osc2light.py index e046600..78afe0e 100644 --- a/osc2light.py +++ b/osc2light.py @@ -5,7 +5,7 @@ import liblo import socket import struct import sys -import clock +import linux import time import threading @@ -45,10 +45,10 @@ class TXQueue(threading.Thread): item = self.queue.pop(0) # We can't send too often, this will cause messages to be lost - while self.last_sent + self.wait_iv > clock.now(): + while self.last_sent + self.wait_iv > linux.now(): time.sleep(self.sleep_iv) item.perform() - self.last_sent = clock.now() + self.last_sent = linux.now() def append(self, txop): assert isinstance(txop, TXOp) |