summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Houston <smhouston88@gmail.com>2018-08-08 09:57:20 -0500
committerStephen Houston <smhouston88@gmail.com>2018-08-08 09:57:20 -0500
commit321af5c4a7474d8fb5b0ba79706ef7b306c72199 (patch)
tree3cebc4a8d1b58b992438f50e3e1d4ba7e925f4d2
parent68efc4f96baa7b6972c848f365615670fecdc37d (diff)
Use the appropriate escaping to make format progress string work.HEADmaster
-rw-r--r--thermal/src/thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thermal/src/thermal.c b/thermal/src/thermal.c
index 8261d78..e976e8b 100644
--- a/thermal/src/thermal.c
+++ b/thermal/src/thermal.c
@@ -62,11 +62,11 @@ _thermal_apply(Instance *inst, int temp)
62 char buf[4096]; 62 char buf[4096];
63 63
64 if (inst->cfg->thermal.units == FAHRENHEIT) 64 if (inst->cfg->thermal.units == FAHRENHEIT)
65 snprintf(buf, sizeof(buf), "%d F (%d %%)", 65 snprintf(buf, sizeof(buf), "%d F (%d %%%%)",
66 (int)((inst->cfg->thermal.temp * 9.0 / 5.0) + 32), 66 (int)((inst->cfg->thermal.temp * 9.0 / 5.0) + 32),
67 inst->cfg->thermal.percent); 67 inst->cfg->thermal.percent);
68 else 68 else
69 snprintf(buf, sizeof(buf), "%d C (%d %%)", 69 snprintf(buf, sizeof(buf), "%d C (%d %%%%)",
70 (int)inst->cfg->thermal.temp, 70 (int)inst->cfg->thermal.temp,
71 inst->cfg->thermal.percent); 71 inst->cfg->thermal.percent);
72 elm_progressbar_value_set(inst->cfg->thermal.popup_pbar, 72 elm_progressbar_value_set(inst->cfg->thermal.popup_pbar,