[sysprof] battery: do final poll at stop() time



commit 1726a8983f6f120d5b01c0817a59120b3936aadc
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 13 20:18:52 2019 -0700

    battery: do final poll at stop() time

 src/libsysprof/sysprof-battery-source.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libsysprof/sysprof-battery-source.c b/src/libsysprof/sysprof-battery-source.c
index 2e8d873..dbc77e2 100644
--- a/src/libsysprof/sysprof-battery-source.c
+++ b/src/libsysprof/sysprof-battery-source.c
@@ -251,6 +251,9 @@ sysprof_battery_source_stop (SysprofSource *source)
 
   g_assert (SYSPROF_IS_BATTERY_SOURCE (self));
 
+  /* Poll one last time */
+  sysprof_battery_source_poll_cb (self);
+
   g_clear_handle_id (&self->poll_source, g_source_remove);
 
   sysprof_source_emit_finished (source);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]