HomeFreeBSD

seq: fix check for rounding error/truncation

Description

seq: fix check for rounding error/truncation

Based on OpenBSD 30f0fd29ba6c:

We need to compare the printable version of the last value displayed,
not the floating point representation. Otherwise, we may print the
last value twice.

PR: 271964
Reported by: Daniel Kolesa
Reviewed by: yuripv
Obtained from: OpenBSD
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40601

Details

Provenance
emasteAuthored on Jun 19 2023, 1:37 AM
Reviewer
yuripv
Differential Revision
D40601: seq: fix check for rounding error/truncation
Parents
rGe77b2ea427c8: ifconfig: set boolean to true rather than incrementing
Branches
Unknown
Tags
Unknown