output uptime in status in local time
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 29 Mar 2008 08:55:09 +0000 (08:55 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 29 Mar 2008 08:55:09 +0000 (08:55 -0000)
src/charon/plugins/stroke/stroke_list.c

index 38c2bf1..b3ee124 100644 (file)
@@ -191,7 +191,7 @@ static void status(private_stroke_list_t *this, stroke_msg_t *msg, FILE *out, bo
        {
                uptime = time(NULL) - this->uptime;
                fprintf(out, "Performance:\n");
        {
                uptime = time(NULL) - this->uptime;
                fprintf(out, "Performance:\n");
-               fprintf(out, "  uptime: %V, since %T\n", &uptime, &this->uptime);
+               fprintf(out, "  uptime: %V, since %#T\n", &uptime, &this->uptime, FALSE);
                fprintf(out, "  worker threads: %d idle of %d,",
                                charon->processor->get_idle_threads(charon->processor),
                                charon->processor->get_total_threads(charon->processor));
                fprintf(out, "  worker threads: %d idle of %d,",
                                charon->processor->get_idle_threads(charon->processor),
                                charon->processor->get_total_threads(charon->processor));