GTimeout: simplify math for 'seconds' case
authorRyan Lortie <desrt@desrt.ca>
Mon, 1 Nov 2010 17:31:37 +0000 (13:31 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 3 Nov 2010 02:39:09 +0000 (22:39 -0400)
commitd9f5ab56c3b79fb12b4ee4f19a8b6307445cc403
tree951eb3bf1af73e885a10835258a5979ac589355f
parentb6854efdb94b74f791cbcc622942825dc042eefc
GTimeout: simplify math for 'seconds' case

The code was designed to deal with any granularity of timer and due to
the use of GTimeVal/GTimeSpec, the math for this gets extremely
confusing.

From a practical standpoint, we only ever have a granularity of seconds.

Take advantage of that fact in the code and vastly simplify the math.
glib/gmain.c