test #1
1 changed files with 0 additions and 2 deletions
2
main.go
2
main.go
|
@ -20,8 +20,6 @@ func notify(msg string) {
|
|||
|
||||
var targetFlag = flag.Int("target", 15, "when to send the alert")
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
sent := false
|
||||
for {
|
||||
capacity, err := os.ReadFile("/sys/class/power_supply/BAT0/capacity")
|
||||
|
|
Loading…
Reference in a new issue