about summary refs log tree commit homepage
path: root/bin
diff options
authorEric Wong <e@80x24.org>2016-01-01 07:30:26 +0000
committerEric Wong <e@80x24.org>2016-01-01 07:30:26 +0000
commit7fe23510d3326d273cabac84c52809dacca73eca (patch)
treebb9a1e75f106992c1f122b2a623534efaeb6e766 /bin
parent901618824a794f4ad1551989c9494f77ac83459f (diff)
Running commands can be "paused" (actually, they're stopped),
so we must display them correctly when attempting to encode
them in the correct format instead of barfing when we attempt
to call the 'encode' method on a Hash object.
Diffstat (limited to 'bin')
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/dtas-console b/bin/dtas-console
index 909f307..0f0db7e 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -151,6 +151,7 @@ begin
     elsif cur['paused'] && infile = cur['current_paused']
       fmt = '(paused)'
       paused = true
+      infile = infile['command'] if Hash === infile
       if Array === infile
         infile, elapsed = infile
         elapsed = elapsed.to_i