summaryrefslogtreecommitdiff
path: root/src/metric.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-04-12 22:00:24 +0200
committerAlfred E. Heggestad <aeh@db.org>2014-04-12 22:00:24 +0200
commit907939540035984a345a754f0ff4884d07d6bf0b (patch)
tree3333c5d56b242f7f125979c6c5539bf0e077d3cf /src/metric.c
parentac32d6f03bd54b5a87ceb36b48832501c034ff51 (diff)
metric: fix average bitrate calculation
Diffstat (limited to 'src/metric.c')
-rw-r--r--src/metric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/metric.c b/src/metric.c
index 8cc0b18..f509805 100644
--- a/src/metric.c
+++ b/src/metric.c
@@ -75,5 +75,5 @@ uint32_t metric_avg_bitrate(const struct metric *metric)
diff = (int)(tmr_jiffies() - metric->ts_start);
- return 1000 * 8 * metric->n_bytes / diff;
+ return 1000 * 8 * (metric->n_bytes / diff);
}