From 4792a4388712146adf4e80ee3fdc218c947363c3 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 24 Jun 2019 08:58:16 -0700 Subject: [PATCH] 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 39dc9e09..b15baacf 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;