diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-05-16 21:58:01 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-06-08 19:52:30 +0200 |
commit | da3256b5aefb4cad706d9f239c9743ca396564c4 (patch) | |
tree | df22bbfe1b5c1fd71aaae3d3a4c4ff7bec11a3c1 /src/or | |
parent | d696bd1bfc3b61943ae4a2be8e4a9fcdfeaec246 (diff) | |
download | tor-da3256b5aefb4cad706d9f239c9743ca396564c4.tar.gz tor-da3256b5aefb4cad706d9f239c9743ca396564c4.zip |
Update the uptime string to include an hours indicator
Before, it wasn't really obvious if one meant hours:minutes or
minutes:seconds etc.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/status.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/status.c b/src/or/status.c index 34a27b2edd..c8bc0705d8 100644 --- a/src/or/status.c +++ b/src/or/status.c @@ -39,13 +39,15 @@ secs_to_uptime(long secs) switch (days) { case 0: - tor_asprintf(&uptime_string, "%d:%02d", hours, minutes); + tor_asprintf(&uptime_string, "%d:%02d hours", hours, minutes); break; case 1: - tor_asprintf(&uptime_string, "%ld day %d:%02d", days, hours, minutes); + tor_asprintf(&uptime_string, "%ld day %d:%02d hours", + days, hours, minutes); break; default: - tor_asprintf(&uptime_string, "%ld days %d:%02d", days, hours, minutes); + tor_asprintf(&uptime_string, "%ld days %d:%02d hours", + days, hours, minutes); break; } |