Go back to the old logic in set_expiration
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Mar 2011 03:37:01 +0000 (22:37 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 Mar 2011 03:38:17 +0000 (22:38 -0500)
commit121ce56fe1741151faffb2c96c4ee7aa5352c314
tree8185cae382c482464549b045ac916a631bd9035f
parentd377367b2cd1bb102bce9b47c47b4a488af24238
Go back to the old logic in set_expiration

It was more complicated, but also more correct...
Also add a test to ensure that our rounding works as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=643795
glib/gmain.c
glib/tests/timeout.c