mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
battery: poll batteries immediately after starting
This commit is contained in:
@ -240,6 +240,9 @@ sysprof_battery_source_start (SysprofSource *source)
|
||||
g_assert (SYSPROF_IS_BATTERY_SOURCE (self));
|
||||
|
||||
self->poll_source = g_timeout_add_seconds (1, sysprof_battery_source_poll_cb, self);
|
||||
|
||||
/* Poll immediately */
|
||||
sysprof_battery_source_poll_cb (self);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user