Ticket #544 (closed bug: fixed)

Opened 3 years ago

Last modified 9 months ago

f2n: Status page shows throughput twice as high as it should

Reported by: carsten.schuette@… Owned by:
Priority: lowest Milestone: Firmware 2.3.7.0
Component: fon-web Version: 2.3.7.0 beta3
Severity: minor
Cc: Hardware: 2.0n (FON2300)

Description

I have a 16 mbit dsl line which synchonizes at abaout 14 mbit/s normally. Today I have downloaded a large file using firefox, and firefox said that download speed was about 950 kbit/s. But the fonera dashboard status page shows about 1900 kbit/s on LAN and WAN interface. Is is too high.

Attachments

Change History

Changed 3 years ago by iurgi

  • priority changed from major to trivial
  • milestone changed from Firmware 2.3.5 to Firmware 2.3.7.0

Changed 3 years ago by matthijs

  • hardware set to 2.0n (FON2300)
  • status changed from new to confirmed
  • version set to 2.3.6.0 (Gari)
  • component changed from fon-base-firmware to fon-web
  • milestone Firmware 2.3.7.0 deleted

This happens on my 2.0n with 2.3.6.0 as well, bandwith is double the actual value.

Changed 9 months ago by matthijs

  • status changed from confirmed to testing-fix
  • version changed from 2.3.6.0 (Gari) to 2.3.7.0 beta3
  • severity set to minor
  • milestone set to Firmware 2.3.7.0

I've found the cause of this issue, the update interval got doubled at some point, but the bandwidth calculation was not updated to take this into account.

I've attached a fixed version of main.htm to #1137 (which reports the graphs not working at all), which fixes both issues To install it, run the following command on your Fonera:

root@Fonera:~# wget -O /usr/lib/lua/luci/view/fon_status/main.htm http://trac.fonosfera.org/fon-ng/raw-attachment/ticket/1137/main.htm

Could you check if this fixes the problem for you and comment back here?

Changed 9 months ago by matthijs

  • status changed from testing-fix to closed
  • resolution set to fixed

(In [2133]) luci: Correct traffic status bandwidth calculation.

The graphs showed twice the actual bandwidth, because the calculation was wrong. The calculation became incorrect when the update interval was changed in r19, but the calculation (which implicitly used the interval) was not updated to follow this.

This commit updates the calculation and makes the interval explicit in the calculation, to prevent this problem from ocurring again.

Closes: #544

Add/Change #544 (f2n: Status page shows throughput twice as high as it should)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
 
Note: See TracTickets for help on using tickets.