aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/simple-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/simple-client.c b/example/simple-client.c
index d756988..20cb281 100644
--- a/example/simple-client.c
+++ b/example/simple-client.c
@@ -103,7 +103,7 @@ static gboolean
percent_change (gpointer user_data)
{
percentage = (percentage + 1) % 100;
- gchar * percentstr = g_strdup_printf("%d%%", percentage);
+ gchar * percentstr = g_strdup_printf("%d%%", percentage + 1);
app_indicator_set_label (APP_INDICATOR(user_data), percentstr, "100%");
g_free(percentstr);
return TRUE;