diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-23 10:02:10 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-23 10:02:10 (GMT) |
commit | 726025bffc1532a283ee9dcb93aaf91a23ca9145 (patch) | |
tree | c86a22d2b587e7f5b55dd0b5efa05ab1343e3d0e | |
parent | fadcb67db419a98193f0ef45b5ac93795bc6ef59 (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 62aebb4..85c4d6c 100644 --- a/src/carquinyol/indexstore.py +++ b/src/carquinyol/indexstore.py @@ -233,6 +233,6 @@ 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) |