diff options
author | Eric Wong <e@80x24.org> | 2017-11-19 22:11:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-11-19 22:11:52 +0000 |
commit | c45125d239143a37a109403153b88c65c5cbf767 (patch) | |
tree | 2267bd3e413f6ef42b609ddcfdaf05e7c02f4e8d /bin/dtas-console | |
parent | 60d7f657f7922457c18b46f56bcd58b8d9e56bbf (diff) | |
download | dtas-c45125d239143a37a109403153b88c65c5cbf767.tar.gz |
We must do this if the user does not use UTC in their time zone, otherwise things could get a bit wacky in the display.
Diffstat (limited to 'bin/dtas-console')
-rwxr-xr-x | bin/dtas-console | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dtas-console b/bin/dtas-console index c65e616..18f6c09 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -173,11 +173,11 @@ begin Curses.setpos(lineno += 1, 0) Curses.clrtoeol Curses.addstr(infile) - total = " [#{Time.at(samples / rate).strftime(tfmt)}]" if samples != 0 + total = " [#{Time.at(samples / rate).utc.strftime(tfmt)}]" if samples != 0 Curses.setpos(lineno += 1, 0) Curses.clrtoeol if rate != 0 - Curses.addstr("#{Time.at(elapsed).strftime(tfmt)}#{total} #{fmt}") + Curses.addstr("#{Time.at(elapsed).utc.strftime(tfmt)}#{total} #{fmt}") else Curses.addstr("#{elapsed} samples #{total} #{fmt}") end |