From 926241aea24a60dce858c863aac39d6be83b23df Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 5 Jan 2014 14:59:24 +0100 Subject: [PATCH] speedmeter: Convert bytes to bits. I assumed that it was computes in bits (hence the variable names). --- html/html/themes/ipfire-new/include/js/refreshInetInfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/html/themes/ipfire-new/include/js/refreshInetInfo.js b/html/html/themes/ipfire-new/include/js/refreshInetInfo.js index f17b50a9a..259f86e07 100644 --- a/html/html/themes/ipfire-new/include/js/refreshInetInfo.js +++ b/html/html/themes/ipfire-new/include/js/refreshInetInfo.js @@ -28,14 +28,14 @@ function refreshInetInfo() { var rxb_diff = rxb_current - rxb_last; rxb_last = rxb_current; - var rx_bits = rxb_diff * 1024 / t_diff; + var rx_bits = rxb_diff * 8192 / t_diff; var rx_fmt = format_bytes(rx_bits); txb_current = $("txb", xml).text(); var txb_diff = txb_current - txb_last; txb_last = txb_current; - var tx_bits = txb_diff * 1024 / t_diff; + var tx_bits = txb_diff * 8192 / t_diff; var tx_fmt = format_bytes(tx_bits); if (t_last != 0) { -- 2.39.2