does gargoyle report kilo kbps as 1000 or 1024

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

Moderator: Moderators

Post Reply
rockatansky
Posts: 6
Joined: Thu Aug 20, 2020 2:15 am

does gargoyle report kilo kbps as 1000 or 1024

Post by rockatansky »

In QoS, quotas, and bandwidth-status kilo or kbits is often used, but there is no indication of it being base two or base ten. So when converting should I be using 1024 or 1000? (same for mega where used)
Still using v1.12.0

[Is there official source for your answer, or are you just assuming?]

rockatansky
Posts: 6
Joined: Thu Aug 20, 2020 2:15 am

Re: does gargoyle report kilo kbps as 1000 or 1024

Post by rockatansky »

I think I found my answer in github.com/ericpaulbishop/gargoyle/blob/1.12/package/qos-gargoyle/src/qosmon.c

The math seems to use 1000 throughout this source file.

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

Re: does gargoyle report kilo kbps as 1000 or 1024

Post by Lantis »

You’re asking about kilobits vs kibibits (and equivalent higher magnitudes)?

Gargoyle uses base 10 for the majority of the interface.
There are specific elements that differ.
The source code is the point of truth.

The part you highlighted is for reporting the Active Congestion Control status and the QoS class statuses.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply