diff options
author | Eugeni Dodonov <eugeni@mandriva.com> | 2010-03-04 09:34:00 -0300 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.com> | 2010-03-04 09:34:00 -0300 |
commit | 6b5aa6f8c9558ffe1b692380fb523aeb0819b468 (patch) | |
tree | a4fb2c89e09174af92d77f633aef6f8d3c3e9817 | |
parent | 5f36ccc36cafc8a1fad089e66d5b6802e7a07735 (diff) | |
download | net_monitor-6b5aa6f8c9558ffe1b692380fb523aeb0819b468.tar net_monitor-6b5aa6f8c9558ffe1b692380fb523aeb0819b468.tar.gz net_monitor-6b5aa6f8c9558ffe1b692380fb523aeb0819b468.tar.bz2 net_monitor-6b5aa6f8c9558ffe1b692380fb523aeb0819b468.tar.xz net_monitor-6b5aa6f8c9558ffe1b692380fb523aeb0819b468.zip |
changed timeout_add to timeout_add_seconds to improve power usage
-rwxr-xr-x | src/net_monitor | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_monitor b/src/net_monitor index 45a94ad..9501bab 100755 --- a/src/net_monitor +++ b/src/net_monitor @@ -336,7 +336,7 @@ class MonitorGui: # configure timer self.signals = Queue.Queue() - gobject.timeout_add(1000, self.update) + gobject.timeout_add_seconds(1, self.update) self.window.show_all() @@ -481,7 +481,7 @@ class MonitorGui: else: value = "%s (%s)" % (pretty_size, pretty_bytes) self.ifaces[iface][widget].set_text(str(value)) - gobject.timeout_add(interval * 1000, self.update) + gobject.timeout_add_seconds(interval, self.update) def check_network_accounting(self, iface): """Checks if network accounting was enabled on interface""" |