aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/system.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 08:58:26 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 08:58:26 +0200
commite9dd31b04324d9a95acf6561a4b6ebcee9d3b8c0 (patch)
treebf7e7bd05e5cbbbae71a333fa299e8f9f73f7ab0 /widgets/system.lua
parent2b499067d07328e775547059212bf3737cfcfdd4 (diff)
downloadconky-theme-udt-e9dd31b04324d9a95acf6561a4b6ebcee9d3b8c0.tar.gz
conky-theme-udt-e9dd31b04324d9a95acf6561a4b6ebcee9d3b8c0.zip
docs: note that sun_t passes a NaN timestamp through
NaN is a number, so the type guard admits it, and every comparison against NaN is false, so neither clamp catches it and the function returns NaN. Left unguarded on purpose. No caller can produce it: parse() matches %d+ for the sun times and `now` is os.time(). If one ever did, Cairo ignores a NaN coordinate, so the arc would lose its dot rather than the dashboard going blank. A ponytail: comment names the ceiling and where the guard would go. Found while probing the committed code, not by the tests, which do not cover NaN. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'widgets/system.lua')
0 files changed, 0 insertions, 0 deletions