[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Update the uptime string to include an hours indicator
commit da3256b5aefb4cad706d9f239c9743ca396564c4
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date: Mon May 16 21:58:01 2011 +0200
Update the uptime string to include an hours indicator
Before, it wasn't really obvious if one meant hours:minutes or
minutes:seconds etc.
---
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 34a27b2..c8bc070 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;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits