diff options
author | Eric Wong <e@80x24.org> | 2019-10-29 07:48:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-11-02 19:34:29 +0000 |
commit | edc40e37184defcdae7c196e80ca6d068a3f808e (patch) | |
tree | 1e3023f521a303344bb233fbef4a54fdedf53c26 /bin | |
parent | 15dbf87e3fba65e91ddfa2af9e8b0b30f74b8ef2 (diff) | |
download | dtas-edc40e37184defcdae7c196e80ca6d068a3f808e.tar.gz |
"ruby -w" will warn on them
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dtas-console | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/dtas-console b/bin/dtas-console index 00b5cd8..877c9c4 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -53,8 +53,6 @@ tfmt = update_tfmt(prec_step[prec_nr], tsec) events = [] interval = 1.0 / 10 ** prec_nr -pause = nil - def show_events(lineno, screen, events) Curses.setpos(lineno += 1, 0) Curses.clrtoeol @@ -135,7 +133,6 @@ begin pfmt = cur['format'] elapsed = samples = 0 fmt = total = '' - paused = false if current = cur['current'] infile = current['infile'] || current['command'] elapsed = DTAS.now - current['spawn_at'] @@ -150,7 +147,6 @@ begin end elsif cur['paused'] && infile = cur['current_paused'] fmt = "[paused] (#{fmt_to_s(pfmt)})" - paused = true infile = infile['command'] if Hash === infile if Array === infile infile, elapsed = infile @@ -220,10 +216,9 @@ begin case event when "pause" if current - pause = current['infile'] || current['command'] + current['infile'] || current['command'] end when %r{\Afile } - pause = nil end events << "#{Time.now.strftime(tfmt)} #{event}" # something happened, refresh current |