diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-04-11 21:22:05 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-04-11 21:22:05 +0100 |
commit | e35a7e473724cc1f6f28196fba9a10a0b27d4861 (patch) | |
tree | 44357cf7c79d96ada2cd8e2e5552cbd1ae69bd5d | |
parent | 05901495715632a4f1995a267b1fc7006b488e6a (diff) | |
download | desktop-cronish-e35a7e473724cc1f6f28196fba9a10a0b27d4861.tar.gz |
Improve reporting of sleep time
-rwxr-xr-x | desktop-cronish | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-cronish b/desktop-cronish index 53e52ed..0765bd2 100755 --- a/desktop-cronish +++ b/desktop-cronish @@ -85,7 +85,8 @@ class DesktopCronish(cliapp.Application): def wait_until(self, when): while self.now() < when: seconds = when - self.now() - self.status('Sleeping for %.1f seconds' % seconds) + t = time.localtime(when) + self.status(time.strftime('Sleeping until %H:%M:%S', t)) time.sleep(seconds) def execute_job(self, job_name): |