aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/system.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 08:56:04 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 08:56:04 +0200
commit17692349e6b6ce3f6083b5d565dda9f3ca7dba22 (patch)
tree136bdba9785f1cdbf5ff33716f0a0360e96cad96 /widgets/system.lua
parenta249039f2de33d8cc8126d6dd62fbc1004193536 (diff)
downloadconky-theme-udt-17692349e6b6ce3f6083b5d565dda9f3ca7dba22.tar.gz
conky-theme-udt-17692349e6b6ce3f6083b5d565dda9f3ca7dba22.zip
docs: explain the Beaufort index arithmetic and why compass exists
Two comments, no behaviour change. `force - 1` reads as an off-by-one until you know the scale starts at 0 while ipairs starts at 1, so the loop index is already force + 1. Said plainly now, along with why the fall-through returns 12. compass() has no caller: the card draws arrow(). It is kept because it shares arrow()'s binning exactly, so testing both pins that shared logic from two angles, and switching the card to "S 9 km/h" becomes a one-word change. Without this note the next reader finds an unused function and has to reconstruct the reasoning. Raised by code review as the only two points worth acting on; no Critical or Important issues were found. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'widgets/system.lua')
0 files changed, 0 insertions, 0 deletions