diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-23 10:00:25 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-23 10:00:25 (GMT) |
commit | ff6d863d412cd86148c537fb3a27cb8295c8f16a (patch) | |
tree | 76af3d012a642b2f7b607cb43c9201d14f7b629a | |
parent | a6167e3fa18f08649812976169dacc2c3321a93f (diff) |
Use gobject_timeout_add_seconds to make power usage more efficient (sayamindu) #1567
-rw-r--r-- | src/carquinyol/indexstore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.py index 1a9f838..d390872 100644 --- a/src/carquinyol/indexstore.py +++ b/src/carquinyol/indexstore.py @@ -312,5 +312,5 @@ class IndexStore(object): self._database.flush() self._pending_writes = 0 else: - self._flush_timeout = gobject.timeout_add(_FLUSH_TIMEOUT * 1000, + self._flush_timeout = gobject.timeout_add_seconds(_FLUSH_TIMEOUT, self._flush_timeout_cb) |