From bea9b84b0f299d6dc913399a58652b4b2f04424d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 16 Sep 2026 19:25:21 +0200 Subject: docs: fix a comment naming a function that does not exist The test comment said "cpu_percent", but the API is new_cpu_counter() plus :sample(). Prose only, the code was always consistent, but a comment naming a nonexistent function sends the next reader looking for it. Co-Authored-By: Claude Opus 5 --- test/test_data.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_data.lua b/test/test_data.lua index 44e9ab3..33551d1 100644 --- a/test/test_data.lua +++ b/test/test_data.lua @@ -36,7 +36,7 @@ assert(data.millidegrees(nil) == nil, 'nil input must give nil') assert(data.millidegrees('') == nil, 'empty input must give nil') assert(data.millidegrees('garbage') == nil, 'unparseable input must give nil') --- cpu_percent is a delta between two samples, so it holds state. +-- CPU load is a delta between two samples, so the counter holds state. -- The first call has no previous sample and must report nil, not a number: -- any number it invented would be wrong, and 100% on startup looks like a -- real spike. -- cgit v1.2.3