Revision 104387a7 src/cli/client_utilities.rb

View differences:

src/cli/client_utilities.rb
62 62
    :id => {
63 63
        :name => "ID",
64 64
        :size => 4,
65
        :proc => lambda {|d,e| d["oid"] }
65
        :proc => lambda {|d,e| d["OID"] }
66 66
    },
67 67
    :name => {
68 68
        :name => "NAME",
69 69
        :size => 8,
70
        :proc => lambda {|d,e| d["deploy_id"] }
70
        :proc => lambda {|d,e| d["DEPLOY_ID"] }
71 71
    },
72 72
    :stat => {
73 73
        :name => "STAT",
......
294 294
end
295 295

  
296 296
def str_running_time(data)
297
    stime=Time.at(data["stime"].to_i)
298
    if data["etime"]=="0"
297
    stime=Time.at(data["STIME"].to_i)
298
    if data["ETIME"]=="0"
299 299
        etime=Time.now
300 300
    else
301
        etime=Time.at(data["etime"].to_i)
301
        etime=Time.at(data["ETIME"].to_i)
302 302
    end
303 303
    dtime=Time.at(etime-stime).getgm
304 304

  

Also available in: Unified diff