baskerville / plato

Document reader
Other
1.23k stars 102 forks source link

autoshutdown in hours? #328

Closed formula-spectre closed 9 months ago

formula-spectre commented 9 months ago

the documentation says:

# The delay, in days, after which a suspended device
# will power off. *Zero* means *never*.
auto-power-off = 3.0

I get the first digit, it's days, but the second? I tried to set it to 0.2 for two hours, but it does not seem to be the right value? since after two hours it did not shut down. or maybe it did, and the screen did not change/i did not notice. I just had the book cover with white bars left and right.

baskerville commented 9 months ago

0.2 days is 24/5 hours, so four hours and forty-eight minutes. Two hours is 2/24 days, about 0.0833 days.

formula-spectre commented 9 months ago

uhh I might sound stupid but can you explain the math behind?

baskerville commented 9 months ago

auto-power-off is just a decimal number.