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
--Apple-Mail=_4503F562-A192-44F2-BE83-30F8C9B1D736 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Dec 3, 2024, at 11:52 AM, Zhenlei Huang <zlei@FreeBSD.org> wrote: >=20 >=20 >=20 >> On Dec 3, 2024, at 5:13 AM, Poul-Henning Kamp <phk@FreeBSD.org> = wrote: >>=20 >> The branch main has been updated by phk: >>=20 >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3Db5a8abe9502e781598dc052698fe7fa5= 830f59ee >>=20 >> 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 >>=20 >> How to show interface traffic in bits per second >> --- >> usr.bin/fortune/datfiles/freebsd-tips | 4 ++++ >> 1 file changed, 4 insertions(+) >>=20 >> 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=3D0x1F4A1' >> $ 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 >=20 > 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` = ... >=20 > Best regards, > Zhenlei >=20 >> +% --Apple-Mail=_4503F562-A192-44F2-BE83-30F8C9B1D736 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br = class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On Dec 3, 2024, at 11:52 AM, Zhenlei Huang <<a = href=3D"mailto:zlei@FreeBSD.org" class=3D"">zlei@FreeBSD.org</a>> = wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><meta = charset=3D"UTF-8" class=3D""><br style=3D"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=3D""><br style=3D"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=3D""><blockquote type=3D"cite" = style=3D"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=3D"">On Dec 3, 2024, at 5:13 AM, = Poul-Henning Kamp <<a href=3D"mailto:phk@FreeBSD.org" = class=3D"">phk@FreeBSD.org</a>> wrote:<br class=3D""><br class=3D"">The= branch main has been updated by phk:<br class=3D""><br class=3D"">URL: = <a = href=3D"https://cgit.FreeBSD.org/src/commit/?id=3Db5a8abe9502e781598dc0526= 98fe7fa5830f59ee" = class=3D"">https://cgit.FreeBSD.org/src/commit/?id=3Db5a8abe9502e781598dc0= 52698fe7fa5830f59ee</a><br class=3D""><br class=3D"">commit = b5a8abe9502e781598dc052698fe7fa5830f59ee<br class=3D"">Author: = Poul-Henning Kamp <<a = href=3D"mailto:phk@FreeBSD.org" class=3D"">phk@FreeBSD.org</a>><br = class=3D"">AuthorDate: 2024-12-02 21:12:27 +0000<br class=3D"">Commit: = Poul-Henning Kamp <<a = href=3D"mailto:phk@FreeBSD.org" class=3D"">phk@FreeBSD.org</a>><br = class=3D"">CommitDate: 2024-12-02 21:12:27 +0000<br class=3D""><br = class=3D""> How to show interface traffic in bits per = second<br class=3D"">---<br = class=3D"">usr.bin/fortune/datfiles/freebsd-tips | 4 ++++<br class=3D"">1 = file changed, 4 insertions(+)<br class=3D""><br class=3D"">diff --git = a/usr.bin/fortune/datfiles/freebsd-tips = b/usr.bin/fortune/datfiles/freebsd-tips<br class=3D"">index = c0807405005e..1e9501e3a6fb 100644<br class=3D"">--- = a/usr.bin/fortune/datfiles/freebsd-tips<br class=3D"">+++ = b/usr.bin/fortune/datfiles/freebsd-tips<br class=3D"">@@ -856,3 +856,7 = @@ $ fc-list ':charset=3D0x1F4A1'<br class=3D"">$ pkg which = /usr/local/share/fonts/noto/NotoColorEmoji.ttf<br = class=3D"">/usr/local/share/fonts/noto/NotoColorEmoji.ttf was installed = by package noto-emoji-2.042<br class=3D"">%<br class=3D"">+When netstat = reports every 8 seconds, it tells traffic in bits per second:<br = class=3D"">+<br class=3D"">+$ netstat -I bge0 8<br = class=3D""></blockquote><br style=3D"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=3D""><span style=3D"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=3D"">Ahh, too stupid to be smart !</span><br style=3D"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=3D""></div></blockquote><div><br = class=3D""></div><div>Emm, I was wrong.</div><div><br = class=3D""></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=3D""><blockquote type=3D"cite" = class=3D""><div class=3D""><br style=3D"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=3D""><span style=3D"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=3D"">Best regards,</span><br style=3D"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=3D""><span style=3D"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=3D"">Zhenlei</span><br style=3D"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=3D""><br style=3D"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=3D""><blockquote type=3D"cite" = style=3D"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=3D"">+%</blockquote></div></blockquote></div><br class=3D""><div = class=3D""> <div><br class=3D""></div> </div> <br class=3D""></body></html>= --Apple-Mail=_4503F562-A192-44F2-BE83-30F8C9B1D736--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EDA68984-3DB1-4872-A319-67E68B8F810A>