Page 1 of 1

does gargoyle report kilo kbps as 1000 or 1024

Posted: Fri Jan 31, 2025 3:34 pm
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?]

Re: does gargoyle report kilo kbps as 1000 or 1024

Posted: Fri Jan 31, 2025 4:09 pm
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.

Re: does gargoyle report kilo kbps as 1000 or 1024

Posted: Fri Jan 31, 2025 6:48 pm
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.