bitsmanent / snore

sleep with feedback
MIT License
73 stars 11 forks source link

time_print: Round components down #22

Closed btj closed 2 years ago

btj commented 2 years ago

When I run snore without arguments, I get output like

0d 0h 0m 1.752s | 1d 24h 60m 58.248s

Is this intentional? I would have expected something like

0d 0h 0m 1.752s | 0d 23h 59m 58.248s

This PR does that.

bitsmanent commented 2 years ago

What if one alter symbols[]? Please, send a PR which takes that into account. Thanks!

bitsmanent commented 2 years ago

Properly fixed in 3ceed6c.