diff options
| author | spv <spv@spv.sh> | 2025-11-25 11:45:47 -0500 |
|---|---|---|
| committer | spv <spv@spv.sh> | 2025-11-25 11:45:47 -0500 |
| commit | 6a7f7db435465564ea92a3d544bf78549d5ab54c (patch) | |
| tree | 7b7ea4a5ce0157c37154378001ee84dd07909dc3 | |
| parent | 107cb3fcf121d42d5616e9b285c105dcd1b1f15b (diff) | |
| -rw-r--r-- | README | 2 | ||||
| -rwxr-xr-x | src/sb | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -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 @@ -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) |
