From nobody Thu Jun 13 23:41:31 2024 X-Original-To: net@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 4W0f7j56j5z5MN76 for ; Thu, 13 Jun 2024 23:41:37 +0000 (UTC) (envelope-from brett@lariat.net) Received: from mail.lariat.net (mail.lariat.net [66.62.230.51]) by mx1.freebsd.org (Postfix) with ESMTP id 4W0f7h55d3z4MML for ; Thu, 13 Jun 2024 23:41:36 +0000 (UTC) (envelope-from brett@lariat.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of brett@lariat.net designates 66.62.230.51 as permitted sender) smtp.mailfrom=brett@lariat.net Received: from Toshi.lariat.net (localhost.lariat.org [127.0.0.1]) by mail.lariat.net (8.9.3/8.9.3) with ESMTP id RAA06841 for ; Thu, 13 Jun 2024 17:41:32 -0600 (MDT) Message-Id: <202406132341.RAA06841@mail.lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Thu, 13 Jun 2024 17:41:31 -0600 To: net@freebsd.org From: freebsd-net@brettglass.com Subject: Re: Overflow or div by 0 in systat -ifstat? In-Reply-To: <202406132038.OAA03662@mail.lariat.net> References: <202406132038.OAA03662@mail.lariat.net> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spamd-Bar: - X-Spamd-Result: default: False [-1.34 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.99)[-0.988]; NEURAL_HAM_SHORT(-0.95)[-0.951]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[freebsd-net@brettglass.com,brett@lariat.net]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; PREVIOUSLY_DELIVERED(0.00)[net@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; FROM_NO_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:19092, ipnet:66.62.228.0/22, country:US]; DMARC_NA(0.00)[brettglass.com]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[freebsd-net@brettglass.com,brett@lariat.net]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[net@freebsd.org] X-Rspamd-Queue-Id: 4W0f7h55d3z4MML A followup on my earlier message. It appears that the systat program (in ifstat.c) is subtracting the previous time of day from the current time of day when calculating data rates, which works fine... except at the stroke of midnight. Not sure who maintains the utility, but this should be fixed since the error, once it crops up, persists as the program keeps running. --Brett Glass