summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2019-12-07 13:08:35 +0000
committerAlastair Poole <netstar@gmail.com>2019-12-07 13:08:35 +0000
commit6be13a1268f52baae2bbe93a5cd18e32ea12fc3e (patch)
tree46341c55ff69a653d99cb24bd57b9662d7e16b5b
parent62a451c9ee9d50d062004ab751ea8985d2d5620b (diff)
Misc: Using high precision here is useless.
-rw-r--r--src/bin/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ui.c b/src/bin/ui.c
index aa3b249..b3af63a 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -146,7 +146,7 @@ _tab_misc_update(Ui *ui, results_t *results)
146 evas_object_size_hint_align_set(progress, EVAS_HINT_FILL, EVAS_HINT_FILL); 146 evas_object_size_hint_align_set(progress, EVAS_HINT_FILL, EVAS_HINT_FILL);
147 evas_object_size_hint_weight_set(progress, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 147 evas_object_size_hint_weight_set(progress, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
148 elm_progressbar_span_size_set(progress, 1.0); 148 elm_progressbar_span_size_set(progress, 1.0);
149 elm_progressbar_unit_format_set(progress, "%1.2f%%"); 149 elm_progressbar_unit_format_set(progress, "%1.0f%%");
150 elm_progressbar_value_set(progress, (double)results->power.batteries[i]->percent / 100); 150 elm_progressbar_value_set(progress, (double)results->power.batteries[i]->percent / 100);
151 evas_object_show(progress); 151 evas_object_show(progress);
152 elm_object_content_set(frame, progress); 152 elm_object_content_set(frame, progress);