git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ec03d8
)
bin/heat: 24h wrapping
author
Jan Kratochvil
<jan@jankratochvil.net>
Fri, 28 Jan 2022 22:01:17 +0000
(23:01 +0100)
committer
Jan Kratochvil
<jan@jankratochvil.net>
Fri, 28 Jan 2022 22:01:17 +0000
(23:01 +0100)
bin/heat
patch
|
blob
|
history
diff --git
a/bin/heat
b/bin/heat
index
8b97539
..
bab4730
100755
(executable)
--- a/
bin/heat
+++ b/
bin/heat
@@
-166,7
+166,7
@@
if (!defined $newreset) {
}
$reset=$newreset;
if ($reset=~/^\d+$/) {
- $resetminutes=
$reset+$minutes
;
+ $resetminutes=
($reset+$minutes)%(24*60)
;
$reset=printminutes($resetminutes)." reset\n";
setstate;
} else {