Date: Tue, 3 Dec 2024 12:41:12 +0800 From: Zhenlei Huang <zlei@FreeBSD.org> To: Poul-Henning Kamp <phk@FreeBSD.org> Cc: "src-committers@freebsd.org" <src-committers@FreeBSD.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@FreeBSD.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@FreeBSD.org> Subject: Re: git: b5a8abe9502e - main - How to show interface traffic in bits per second Message-ID: <EDA68984-3DB1-4872-A319-67E68B8F810A@FreeBSD.org> In-Reply-To: <043A2EA2-647F-4B04-B6AA-A3E6B001B741@FreeBSD.org> References: <202412022113.4B2LD0mt010926@gitrepo.freebsd.org> <043A2EA2-647F-4B04-B6AA-A3E6B001B741@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] > 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 > >> +% [-- Attachment #2 --] <html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 3, 2024, at 11:52 AM, Zhenlei Huang <<a href="mailto:zlei@FreeBSD.org" class="">zlei@FreeBSD.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">On Dec 3, 2024, at 5:13 AM, Poul-Henning Kamp <<a href="mailto:phk@FreeBSD.org" class="">phk@FreeBSD.org</a>> wrote:<br class=""><br class="">The branch main has been updated by phk:<br class=""><br class="">URL: <a href="https://cgit.FreeBSD.org/src/commit/?id=b5a8abe9502e781598dc052698fe7fa5830f59ee" class="">https://cgit.FreeBSD.org/src/commit/?id=b5a8abe9502e781598dc052698fe7fa5830f59ee</a><br class=""><br class="">commit b5a8abe9502e781598dc052698fe7fa5830f59ee<br class="">Author: Poul-Henning Kamp <<a href="mailto:phk@FreeBSD.org" class="">phk@FreeBSD.org</a>><br class="">AuthorDate: 2024-12-02 21:12:27 +0000<br class="">Commit: Poul-Henning Kamp <<a href="mailto:phk@FreeBSD.org" class="">phk@FreeBSD.org</a>><br class="">CommitDate: 2024-12-02 21:12:27 +0000<br class=""><br class=""> How to show interface traffic in bits per second<br class="">---<br class="">usr.bin/fortune/datfiles/freebsd-tips | 4 ++++<br class="">1 file changed, 4 insertions(+)<br class=""><br class="">diff --git a/usr.bin/fortune/datfiles/freebsd-tips b/usr.bin/fortune/datfiles/freebsd-tips<br class="">index c0807405005e..1e9501e3a6fb 100644<br class="">--- a/usr.bin/fortune/datfiles/freebsd-tips<br class="">+++ b/usr.bin/fortune/datfiles/freebsd-tips<br class="">@@ -856,3 +856,7 @@ $ fc-list ':charset=0x1F4A1'<br class="">$ pkg which /usr/local/share/fonts/noto/NotoColorEmoji.ttf<br class="">/usr/local/share/fonts/noto/NotoColorEmoji.ttf was installed by package noto-emoji-2.042<br class="">%<br class="">+When netstat reports every 8 seconds, it tells traffic in bits per second:<br class="">+<br class="">+$ netstat -I bge0 8<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Ahh, too stupid to be smart !</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote><div><br class=""></div><div>Emm, I was wrong.</div><div><br class=""></div><div>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` ...</div><br class=""><blockquote type="cite" class=""><div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Best regards,</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Zhenlei</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">+%</blockquote></div></blockquote></div><br class=""><div class=""> <div><br class=""></div> </div> <br class=""></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EDA68984-3DB1-4872-A319-67E68B8F810A>
