From d230d84e91bbd5ba62a0c6a99c5229a1a0c14060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maja=20K=C4=85dzio=C5=82ka?= Date: Sun, 5 Mar 2023 15:09:49 +0100 Subject: [PATCH] Make the target actually configurable --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9cfc857..e3e512a 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ func main() { notify("error: " + err.Error()) } - if numCap < 15 { + if numCap <= *targetFlag { if !sent { sent = true notify("battery running low!") -- 2.47.0