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

2024-12-03 Thread John Baldwin
On 12/3/24 08:09, Poul-Henning Kamp wrote: John Baldwin writes: +When netstat reports every 8 seconds, it tells traffic in bits per second: + +$ netstat -I bge0 8 +% Hmm, I'm pretty sure it's in bytes, and checking the code, it seems like show_stat() in netstat/if.c just shows the r

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

2024-12-03 Thread Poul-Henning Kamp
John Baldwin writes: > > +When netstat reports every 8 seconds, it tells traffic in bits per second: > > + > > +$ netstat -I bge0 8 > > +% > > Hmm, I'm pretty sure it's in bytes, and checking the code, it seems like > show_stat() > in netstat/if.c just shows the raw delta in values witho

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

2024-12-03 Thread John Baldwin
On 12/2/24 13:13, Poul-Henning Kamp wrote: The branch main has been updated by phk: URL: https://cgit.FreeBSD.org/src/commit/?id=b5a8abe9502e781598dc052698fe7fa5830f59ee commit b5a8abe9502e781598dc052698fe7fa5830f59ee Author: Poul-Henning Kamp AuthorDate: 2024-12-02 21:12:27 + Commit:

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

2024-12-03 Thread Zhenlei Huang
> On Dec 3, 2024, at 3:55 PM, Poul-Henning Kamp wrote: > > > Zhenlei Huang writes: > >> 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` > > Netstat -I reports bytes since last update

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

2024-12-02 Thread Poul-Henning Kamp
Zhenlei Huang writes: > 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` Netstat -I reports bytes since last update, not bytes per second. -- Poul-Henning Kamp | UNIX since Zilog Ze

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

2024-12-02 Thread Zhenlei Huang
> On Dec 3, 2024, at 11:52 AM, Zhenlei Huang wrote: > > > >> On Dec 3, 2024, at 5:13 AM, Poul-Henning Kamp wrote: >> >> The branch main has been updated by phk: >> >> URL: >> https://cgit.FreeBSD.org/src/commit/?id=b5a8abe9502e781598dc052698fe7fa5830f59ee >> >> commit b5a8abe9502e781598d

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

2024-12-02 Thread Zhenlei Huang
> On Dec 3, 2024, at 5:13 AM, Poul-Henning Kamp wrote: > > The branch main has been updated by phk: > > URL: > https://cgit.FreeBSD.org/src/commit/?id=b5a8abe9502e781598dc052698fe7fa5830f59ee > > commit b5a8abe9502e781598dc052698fe7fa5830f59ee > Author: Poul-Henning Kamp > AuthorDate:

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

2024-12-02 Thread Poul-Henning Kamp
The branch main has been updated by phk: URL: https://cgit.FreeBSD.org/src/commit/?id=b5a8abe9502e781598dc052698fe7fa5830f59ee commit b5a8abe9502e781598dc052698fe7fa5830f59ee Author: Poul-Henning Kamp AuthorDate: 2024-12-02 21:12:27 + Commit: Poul-Henning Kamp CommitDate: 2024-12-0