Date: Mon, 30 Sep 2019 19:05:22 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240947] Hours calculation in blacklistctl dump output incorrect Message-ID: <bug-240947-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240947 Bug ID: 240947 Summary: Hours calculation in blacklistctl dump output incorrect Product: Base System Version: 11.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsdbugs@vanderzwan.org When remaining time for blacklist entry > 24h the hours shown is incorrect : 218.249.24.98/32:25 OK 1/1 2d52h21m44s 45.136.108.29/32:587 OK 1/1 1d28h23m49s 106.53.185.230/32:25 OK 1/1 1d34h6m15s The following patch fixes the error: $ svn diff contrib/blacklist/bin/support.c Index: contrib/blacklist/bin/support.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- contrib/blacklist/bin/support.c (revision 352893) +++ contrib/blacklist/bin/support.c (working copy) @@ -107,7 +107,7 @@ t /=3D 60; m =3D t % 60; t /=3D 60; - h =3D t % 60; + h =3D t % 24; t /=3D 24; d =3D t % 24; t /=3D 356; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240947-227>