gamegos / cesi

CeSI is a web interface for managing multiple supervisors from the same place.
GNU General Public License v3.0
576 stars 184 forks source link

Uptime display error #12

Closed tuteng closed 8 years ago

tuteng commented 8 years ago

If the process number is large, the Uptime will display error

example:
file: cesi/cesi/static/custom.js
description: "pid 199917, uptime 0:47:11"
var $uptime = result['process_info'][$counter]['description'].substring(17,24);   
$uptime == "e 0:47:"    
Solution:   
var $uptime = result['process_info'][$counter]['description'].split(", uptime")[1];    

thank you

GulsahKose commented 8 years ago

Solved with https://github.com/gamegos/cesi/pull/10