comparison libpurple/protocols/zephyr/zephyr.c @ 26612:b87843de7c6a

A patch from Arunan Balasubramaniam to use timeouts in seconds instead of milliseconds in libpurple. This enables grouping of timers for greater power efficiency. Fixes #8875. committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author foss@abala.me
date Fri, 10 Apr 2009 06:18:08 +0000
parents 0c796a1950b7
children 5ff1d66e6aef
comparison
equal deleted inserted replaced
26611:8a0797f40695 26612:b87843de7c6a
1878 if (use_zeph02(zephyr)) { 1878 if (use_zeph02(zephyr)) {
1879 zephyr->nottimer = purple_timeout_add(100, check_notify_zeph02, gc); 1879 zephyr->nottimer = purple_timeout_add(100, check_notify_zeph02, gc);
1880 } else if (use_tzc(zephyr)) { 1880 } else if (use_tzc(zephyr)) {
1881 zephyr->nottimer = purple_timeout_add(100, check_notify_tzc, gc); 1881 zephyr->nottimer = purple_timeout_add(100, check_notify_tzc, gc);
1882 } 1882 }
1883 zephyr->loctimer = purple_timeout_add(20000, check_loc, gc); 1883 zephyr->loctimer = purple_timeout_add_seconds(20, check_loc, gc);
1884 1884
1885 } 1885 }
1886 1886
1887 static void write_zsubs(zephyr_account *zephyr) 1887 static void write_zsubs(zephyr_account *zephyr)
1888 { 1888 {