Bandwidth usage per device doesn't add up

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

jason701802
Posts: 6
Joined: Wed Nov 11, 2020 1:00 pm
Location: USA

Bandwidth usage per device doesn't add up

Post by jason701802 »

I have a Linksys WRT1900ACS with Gargoyle 1.12.0. I installed Gargoyle (from stock) on Nov 2. I decided to try out Gargoyle after having issues with incorrect totals in bwmon (on OpenWRT) and Yamon (on both OpenWRT and DD-WRT).

When displaying by month and sorting by host, some devices show data usage in Oct 2020 and Nov 2020 (despite the fact that I only installed Gargoyle on Nov 2). If I switch to displaying by day, it only shows usage back to Nov 2. If I switch to Total Bandwidth by month, it doesn't show any usage in Oct 2020

The sum of all the device usages for Nov 2020 is around half of what's listed in Total Bandwidth for the month. I have to add up both the Oct 2020 and Nov 2020 usage for all the devices to reach the total shown in Total Bandwidth. The value in Total Bandwidth aligns with the total usage reported by my ISP (unfortunately I installed Gargoyle after the month started so I can't tell if it's an exact match).

In the B/W distribution tab, October 2020 is listed twice at the top of the list and November is not in the list at all. If I select the second October 2020, it displays different data but switches back to the first October 2020 after about a second. I have to add both Sums from the 2 October 2020 tabs to match the Total Bandwidth from the Bandwidth usage tab. If I filter by day instead of month, it only gives me the expected days (November 2 through today). Interestingly, the total of the Sums from each day matches the total bandwidth for the month in the Bandwidth Usage tab (i.e. appears to be correct).

I'm also seeing a very small amount of usage for some devices in Nov 2019. Could this be due to data usage before the clock was set correctly after a power outage or on initial setup? Is there a way to delete just this data?

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Bandwidth usage per device doesn't add up

Post by Lantis »

This sounds a lot like a bug which has already been fixed in a later version.
https://github.com/ericpaulbishop/gargo ... 604fe6e61d
You can manually apply that fix or move to the latest 1.12.x

The 2019 data yes I think you're correct. There's no practical ways of deleting it sorry.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

jason701802
Posts: 6
Joined: Wed Nov 11, 2020 1:00 pm
Location: USA

Re: Bandwidth usage per device doesn't add up

Post by jason701802 »

I'm already running 1.12.0 (downloaded on Nov 2), which is the latest version I see on the download page.

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Bandwidth usage per device doesn't add up

Post by RomanHK »

jason701802 wrote:
Wed Nov 11, 2020 10:30 pm
I'm already running 1.12.0 (downloaded on Nov 2), which is the latest version I see on the download page.
You can also try the latest build 1.12.x from @ispyisail with the latest fixes on Jun 14: viewtopic.php?f=14&t=12458

Mirror: http://gargoyle.romanhk.cz/
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

jason701802
Posts: 6
Joined: Wed Nov 11, 2020 1:00 pm
Location: USA

Re: Bandwidth usage per device doesn't add up

Post by jason701802 »

I'm still seeing the same weirdness after updating. Should this fix the display of current data or only fix the collection of new data?

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Bandwidth usage per device doesn't add up

Post by Lantis »

It should fix all of it, as the data is stored correctly just not displayed right.
Please ensure you clear your browser cache so you are getting the benefits of the latest code.
CTRL+F5
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

jason701802
Posts: 6
Joined: Wed Nov 11, 2020 1:00 pm
Location: USA

Re: Bandwidth usage per device doesn't add up

Post by jason701802 »

I tried that even even a different browser. It still looks the same.

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Bandwidth usage per device doesn't add up

Post by Lantis »

Can you please confirm the exact Gargoyle version you're running by checking the Status->Overview page?
Mine for example is:

Code: Select all

Gargoyle Version:1.13.X (Built 20201010-0454 git@cefe71e9)
Specifically interested in when it was built, and what git commit, and to make sure it is 1.12.x as well.

Can you also please provide the output of the following commands:

Code: Select all

bw_get -i bdist5-download-month-12 -h -a COMBINED
and

Code: Select all

uci show system.system.timezone
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

jason701802
Posts: 6
Joined: Wed Nov 11, 2020 1:00 pm
Location: USA

Re: Bandwidth usage per device doesn't add up

Post by jason701802 »

Code: Select all

Gargoyle Version:1.12.X (Built 20200610-0028 git@80899c80)

Code: Select all

/$ bw_get -i bdist5-download-month-12 -h -a COMBINED
bdist5-download-month-12 COMBINED       
1624814	Tue Nov  5 06:18:46 2019	Sun Dec  1 00:00:00 2019
0	Sun Dec  1 00:00:00 2019	Wed Jan  1 00:00:00 2020
0	Wed Jan  1 00:00:00 2020	Sat Feb  1 00:00:00 2020
0	Sat Feb  1 00:00:00 2020	Sun Mar  1 00:00:00 2020
0	Sun Mar  1 00:00:00 2020	Wed Apr  1 00:00:00 2020
0	Wed Apr  1 00:00:00 2020	Fri May  1 00:00:00 2020
0	Fri May  1 00:00:00 2020	Mon Jun  1 00:00:00 2020
0	Mon Jun  1 00:00:00 2020	Wed Jul  1 00:00:00 2020
0	Wed Jul  1 00:00:00 2020	Sat Aug  1 00:00:00 2020
0	Sat Aug  1 00:00:00 2020	Tue Sep  1 00:00:00 2020
0	Tue Sep  1 00:00:00 2020	Thu Oct  1 00:00:00 2020
0	Thu Oct  1 00:00:00 2020	Sun Nov  1 00:00:00 2020
541610636473	Sun Nov  1 00:00:00 2020	(Now)

Code: Select all

/$ uci show system.system.timezone
system.system.timezone='PST8PDT,M3.2.0/2,M11.1.0/2'
And just to show you what I get for one of the odd devices

Code: Select all

/$ bw_get -i bdist5-download-month-12 -h -a 192.168.1.104
bdist5-download-month-12 192.168.1.104  
18649539012	Fri Oct 30 23:36:00 2020	Sun Nov  1 00:00:00 2020
17477471706	Sun Nov  1 00:00:00 2020	(Now)

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Bandwidth usage per device doesn't add up

Post by Lantis »

Thanks for the data.
Looks like I only fixed that bug on one page (Bandwidth Usage, not Bandwidth Distribution).

I'm sure iSpyiSail or someone else will provide another community build (in due time) with the fix, however if you're comfortable, you can make the change yourself.
https://github.com/ericpaulbishop/gargo ... 966519cedd
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply