1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 21:08:06 +01:00

Don't convert to milliseconds in misc.timeout_add if milli is True.

This commit is contained in:
Dan O'Reilly
2009-02-10 01:08:12 -05:00
parent 30b59d1a59
commit 7ee121c15e

View File

@@ -663,5 +663,6 @@ def timeout_add(time, func, milli=False):
if hasattr(gobject, "timeout_add_seconds") and not milli: if hasattr(gobject, "timeout_add_seconds") and not milli:
return gobject.timeout_add_seconds(time, func) return gobject.timeout_add_seconds(time, func)
else: else:
return gobject.timeout_add(time * 1000, func) if not milli: time = time * 1000
return gobject.timeout_add(time, func)