gnetworkmonitornetlink: Use a coarser-grained timer for dumps
commit23fad11430eb837ec1058cdb9368f3a6ea352fee
authorPhilip Withnall <withnall@endlessm.com>
Tue, 27 Feb 2018 12:49:11 +0000 (27 12:49 +0000)
committerPhilip Withnall <withnall@endlessm.com>
Wed, 28 Feb 2018 17:39:04 +0000 (28 17:39 +0000)
tree5a0fb5f2535e77316b089dc99c651134b8b997e9
parent85f3bc133f258a436fb8018580dd23acf5220a0c
gnetworkmonitornetlink: Use a coarser-grained timer for dumps

By using g_timeout_source_new_seconds(), we can let timer wakeups be
coalesced by the scheduler, and reduce power consumption a bit. This
shouldn’t really affect the accuracy of the network monitoring.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=793880
gio/gnetworkmonitornetlink.c