diff --git a/core/server/server.cpp b/core/server/server.cpp index 5f0a5530..d7719961 100644 --- a/core/server/server.cpp +++ b/core/server/server.cpp @@ -211,8 +211,8 @@ void Server::note_ready(uint64_t begin_ns) { if (begin_ns == 0) return; const uint64_t now = rad_mono_ns(); /* Only a start in the past is a duration. A stamp that arrives out of order is ignored rather - * than written as zero: the page divides by this figure, and a zero cost would price every - * restart as free. */ + * than written as zero: a zero cost would price every restart as free in any payback formula + * that divides by it. */ if (now <= begin_ns) return; startup_s_ = (int64_t)((now - begin_ns) / 1000000000ull); } diff --git a/tests/sched_test.cpp b/tests/sched_test.cpp index a5f229d3..fe015b94 100644 --- a/tests/sched_test.cpp +++ b/tests/sched_test.cpp @@ -2684,7 +2684,6 @@ TEST(the_decode_floor_reports_a_recent_window_for_like_for_like_drift) { CHECK(recent > 0); /* The phantom gap must be small: this is the number the deadband is sized against. */ const int64_t gap_pct = 100 * (recent - floor) / floor; - CHECK(gap_pct >= 0); CHECK(gap_pct < 3); }