From 6a7f7db435465564ea92a3d544bf78549d5ab54c Mon Sep 17 00:00:00 2001 From: spv Date: Tue, 25 Nov 2025 11:45:47 -0500 Subject: wip code cleanup / specify date for `sb` summation on cli --- README | 2 +- src/sb | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README b/README index c5a9f02..1481e00 100644 --- a/README +++ b/README @@ -25,7 +25,7 @@ roadmap (n/a) drop privs (add user to input group) (x) where to store reports (~~/var dir?~~ ~/.local/stroke_buddy) [ ] respond to plug-n-play -[ ] sensible code organization +[~] sensible code organization / cleanup [x] systemd user service license diff --git a/src/sb b/src/sb index a3bc968..640cad6 100755 --- a/src/sb +++ b/src/sb @@ -12,10 +12,13 @@ function count_for_date { | cut -d',' -f2) lines=$(($lines+$hourly_presses)) -# lines=$(($lines+$hourly)); done echo $lines } +if [ -n "$1" ]; then + TODAY=$1 +fi + echo $(count_for_date $TODAY) -- cgit v1.2.3