Re: git: b5a8abe9502e - main - How to show interface traffic in bits per second

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Tue, 03 Dec 2024 04:41:12 UTC

> On Dec 3, 2024, at 11:52 AM, Zhenlei Huang <zlei@FreeBSD.org> wrote:
> 
> 
> 
>> On Dec 3, 2024, at 5:13 AM, Poul-Henning Kamp <phk@FreeBSD.org> wrote:
>> 
>> The branch main has been updated by phk:
>> 
>> URL: https://cgit.FreeBSD.org/src/commit/?id=b5a8abe9502e781598dc052698fe7fa5830f59ee
>> 
>> commit b5a8abe9502e781598dc052698fe7fa5830f59ee
>> Author:     Poul-Henning Kamp <phk@FreeBSD.org>
>> AuthorDate: 2024-12-02 21:12:27 +0000
>> Commit:     Poul-Henning Kamp <phk@FreeBSD.org>
>> CommitDate: 2024-12-02 21:12:27 +0000
>> 
>>   How to show interface traffic in bits per second
>> ---
>> usr.bin/fortune/datfiles/freebsd-tips | 4 ++++
>> 1 file changed, 4 insertions(+)
>> 
>> diff --git a/usr.bin/fortune/datfiles/freebsd-tips b/usr.bin/fortune/datfiles/freebsd-tips
>> index c0807405005e..1e9501e3a6fb 100644
>> --- a/usr.bin/fortune/datfiles/freebsd-tips
>> +++ b/usr.bin/fortune/datfiles/freebsd-tips
>> @@ -856,3 +856,7 @@ $ fc-list ':charset=0x1F4A1'
>> $ pkg which /usr/local/share/fonts/noto/NotoColorEmoji.ttf
>> /usr/local/share/fonts/noto/NotoColorEmoji.ttf was installed by package noto-emoji-2.042
>> %
>> +When netstat reports every 8 seconds, it tells traffic in bits per second:
>> +
>> +$ netstat -I bge0 8
> 
> Ahh, too stupid to be smart !

Emm, I was wrong.

When netstat reports every 8 seconds, you're gonna get `8 * bytes per 8 seconds`, so you still get `bytes per second` but not `bits per second` ...

> 
> Best regards,
> Zhenlei
> 
>> +%