[tor-bugs] #6351 [arm]: tor uptime is not reported

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Jul 9 16:47:41 UTC 2012


#6351: tor uptime is not reported
--------------------+-------------------------------------------------------
 Reporter:  hsn     |          Owner:  atagar
     Type:  defect  |         Status:  new   
 Priority:  minor   |      Milestone:        
Component:  arm     |        Version:        
 Keywords:          |         Parent:        
   Points:          |   Actualpoints:        
--------------------+-------------------------------------------------------
Changes (by atagar):

  * priority:  normal => minor


Comment:

 The uptime that arm reports is based on ps results when running on BSD. If
 I'm unable to parse the value then it's left blank. I recall that OpenBSD
 has a particularly insane value for this field, providing the time that
 the process started in *local 12-hour time*. In that case I figured they
 deserved for me to treat it as being unparseable. :P

 That said, I thought that this worked on FreeBSD. Here's the part where I
 parse the ps results...
 https://gitweb.torproject.org/arm.git/blob/HEAD:/src/util/sysTools.py#l495

 In particular, the uiTools.parseShortTimeLabel() function...
 https://gitweb.torproject.org/arm.git/blob/HEAD:/src/util/uiTools.py#l493

 Patches welcome if you want to make this accommodate whatever FreeBSD is
 giving you.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6351#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list