(self, uptime)
return load_averages
Parse u' 16:53:48 up 1 day, 21:34,  3 users,  load average: 0.04, 0.14, 0.19\n
Parse u' 16:53:48 up 1 day, 21:34,  3 users,  load average: 0.04, 0.14, 0.19\n
Parse u 16 : 53 : 48 up 1 day 21 : 34 3 users load average : 0 . 04 0 . 14 0 . 19 \ n
def _parse_uptime_string(self, uptime):
        """Parse u' 16:53:48 up 1 day, 21:34,  3 users,  load average: 0.04, 0.14, 0.19\n'"""
        uptime = uptime.strip()
        load_averages = uptime[uptime.find('load average:') :].split(':')[1].strip().split(',')
        load_averages = [float(load_avg) for load_avg in load_averages]
        return load_averages
def _parse_uptime_string ( self , uptime ) : uptime = uptime . strip ( ) load_averages = uptime [ uptime . find ( 'load average:' ) : ] . split ( ':' ) [ 1 ] . strip ( ) . split ( ',' ) load_averages = [ float ( load_avg ) for load_avg in load_averages ] return load_averages