[sysprof] add rate for charge type



commit 4792a4388712146adf4e80ee3fdc218c947363c3
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 24 08:58:16 2019 -0700

    add rate for charge type

 src/libsysprof/sysprof-battery-source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof/sysprof-battery-source.c b/src/libsysprof/sysprof-battery-source.c
index 39dc9e0..b15baac 100644
--- a/src/libsysprof/sysprof-battery-source.c
+++ b/src/libsysprof/sysprof-battery-source.c
@@ -130,7 +130,7 @@ sysprof_battery_source_prepare (SysprofSource *source)
 
       g_strlcpy (ctr.category, "Battery Charge", sizeof ctr.category);
       g_strlcpy (ctr.name, bat.id, sizeof ctr.name);
-      g_strlcpy (ctr.description, bat.name, sizeof ctr.description);
+      g_snprintf (ctr.description, sizeof ctr.description, "%s (µAh)", bat.name);
       ctr.id = bat.counter_id;
       ctr.type = SYSPROF_CAPTURE_COUNTER_INT64;
 


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