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:07:27 +0000 (17:07 +1000)
print the current time and not the start time

tools/ctdb.c

index c99fbe5230bb65d3c94fdd869558b3d8331c9e44..fc74ffbf58fc4323a7b24c1981fb8c788d4d9eab 100644 (file)
@@ -211,7 +211,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++) {