When we say "current time of statistics" in the "ctdb statistics" output,
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 2 Jun 2010 07:06:14 +0000 (17:06 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 2 Jun 2010 07:06:14 +0000 (17:06 +1000)
print the current time and not the start time

tools/ctdb.c

index 91e8212520ad6d86363479ca36cb3c70ac1944be..c59a8b4acc6294cb13e0e9c30a7938699c800c9d 100644 (file)
@@ -207,7 +207,7 @@ static void show_statistics(struct ctdb_statistics *s)
        days    = tmp;
 
        printf("CTDB version %u\n", CTDB_VERSION);
-       printf("Current time of statistics  :                %s", ctime(&s->statistics_start_time.tv_sec));
+       printf("Current time of statistics  :                %s", ctime(&s->statistics_current_time.tv_sec));
        printf("Statistics collected since  : (%03d %02d:%02d:%02d) %s", days, hours, minutes, seconds, ctime(&s->statistics_start_time.tv_sec));
 
        for (i=0;i<ARRAY_SIZE(fields);i++) {