Don't pad H/M/S from date
Caused occasional script failures, was it trying to interpret as octal?
This commit is contained in:
parent
76930fe033
commit
5c753ff5ec
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ SUNSET_END="$((23 * 60 * 60))" # When to reach min temperature
|
|||
DAY_TEMP="6000" # Display temperature (K) to use in full daylight
|
||||
NIGHT_TEMP="2400" # Display temperature (K) to use at night
|
||||
|
||||
CURRENT="$(((($(date '+%H') * 60) + $(date '+%M')) * 60 + $(date '+%S')))" # Time in seconds since start of day
|
||||
CURRENT="$(((($(date '+%-H') * 60) + $(date '+%-M')) * 60 + $(date '+%-S')))" # Time in seconds since start of day
|
||||
|
||||
# Performs a calculation using an argument containing an input string
|
||||
calc() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue