From a8a620ba4eb7bfcb44430874419c65ada135bb00 Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Mon, 21 May 2012 23:10:08 +0200 Subject: Use double values for progress bars (bug #8882). Otherwise the progress bars don't show anything unless we're over 100% (100% busy, or exceeding the configured transfer rate). Thanks to Peter Tribble for spotting this. --- panel-plugin/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/panel-plugin/main.c b/panel-plugin/main.c index 1b5b2d4..e898d4a 100644 --- a/panel-plugin/main.c +++ b/panel-plugin/main.c @@ -143,7 +143,7 @@ typedef struct diskperf_t { static int timerNeedsUpdate = 0; -static void UpdateProgressBars(struct diskperf_t *p_poPlugin, uint64_t rw, uint64_t r, uint64_t w) { +static void UpdateProgressBars(struct diskperf_t *p_poPlugin, double rw, double r, double w) { /* Update combined or separate progress bars with actual data */ struct monitor_t *poMonitor = &(p_poPlugin->oMonitor); struct param_t *poConf = &(p_poPlugin->oConf.oParam); -- 1.7.8.6