[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #6351 [arm]: tor uptime is not reported
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs