From nobody Tue Dec 3 04:41:12 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y2Sf93l6bz5fhRD; Tue, 03 Dec 2024 04:41:21 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y2Sf93Fj0z41Nc; Tue, 3 Dec 2024 04:41:21 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733200881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=n3l/2ItwqM4YrqaJZHF7r1FiF+iSl0P4LLgrWdtod1M=; b=JDvmD/G7sEm+EdozfoxJGg5SdJZNFbqWCpBXsV7Dy3lg3K/yxMXLhNLUjjZozjUh/K2HdU eXEM3CmUJlE7u2ALFETA1O3Jdvv5dsYv/BzhbjVYizsRCMGYdZliImGV0DDxU4ZXmbDVxB fZZJLeGt/T1I2o0lIPNVwN+Jn5MxRLmY2woXWLsR2wF6i1CRce2BIheZf6njU/9oicXc1s h6X5lXiV6fqyFp34iboLTmGBpO39IsJQdbSimj0hTMXebmuoZSkUvCWCLzx7dWijyGmt63 J0a9c1fXEmPvZ1JwvftVVHFKxYSkweBBU/ea8miLHOqHn3iiYz4f9EWC7x//JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733200881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=n3l/2ItwqM4YrqaJZHF7r1FiF+iSl0P4LLgrWdtod1M=; b=XpKk/mOpYb+SkfrgnhIzOQMY0zKy5wKG/yVldrtEUVO+sgDPvEaBmrfujTU2JhSIZqk6QY Udl8bHwyG9ng/Zf+rGvivVdOvd9DkqJyOCvndfQK2l1yA03MtEMszr65oPzsCN3GPIHvTa Z27vQcBPWt1YE1CfKrw4TiCudcJfOsS6ypftsTLSgNhCp8PzCEEHpBWAW8aMoWSRzfhSbd EJ1sIDZUde7NHWzqOlbVEFyY9Df2q8arzTFNcpS2c44inqOHNsZxPPgKB/Ul2jVPcF9qs6 e9In3B0RD4g0a8TUPQPQIoPBI7DHAqk6B4j2NfGpHQfxJYsHLR1ilIQlY1tpEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733200881; a=rsa-sha256; cv=none; b=f9B9k5kj0ocn8d86wm8SGCPWQ/qPB4p5STZQvXwbQsiUUd2l9nXQf8fESefh03OSYaQ57V d0v5Rvuji+hG/3iCJvrJrUmMaBmh7h68Nb0/IY7K4Hijvl9UhyuUTdHpCLMJweSHmJCtnb jYK3H4Tl0dd7g0vtI6LnbQmGHSl3gciIWJe28/dvz0OcI7Dqrq520w7baiFts6PqvkQ2cq 5cfIBkLgHZOOp28+47TjzxeKVjgd3kFGRBdN50wRnbGFt56drJgMHq4y2aZNkLzxo7CkDM QyYdvgRbM3NdSPbxCByTiW/CPcQz8EaISTahP5UC7uMz/aJTLeFm31b565Q8Uw== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Y2Sf73qHCz1NmV; Tue, 3 Dec 2024 04:41:19 +0000 (UTC) (envelope-from zlei@FreeBSD.org) From: Zhenlei Huang Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_4503F562-A192-44F2-BE83-30F8C9B1D736" List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: git: b5a8abe9502e - main - How to show interface traffic in bits per second Date: Tue, 3 Dec 2024 12:41:12 +0800 In-Reply-To: <043A2EA2-647F-4B04-B6AA-A3E6B001B741@FreeBSD.org> Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" To: Poul-Henning Kamp References: <202412022113.4B2LD0mt010926@gitrepo.freebsd.org> <043A2EA2-647F-4B04-B6AA-A3E6B001B741@FreeBSD.org> X-Mailer: Apple Mail (2.3696.120.41.1.10) --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 wrote: >=20 >=20 >=20 >> On Dec 3, 2024, at 5:13 AM, Poul-Henning Kamp = 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 >> AuthorDate: 2024-12-02 21:12:27 +0000 >> Commit: Poul-Henning Kamp >> 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

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=3Db5a8abe9502e781598dc0= 52698fe7fa5830f59ee

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=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

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

+%



= --Apple-Mail=_4503F562-A192-44F2-BE83-30F8C9B1D736--