git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2192c45
)
When we say "current time of statistics" in the "ctdb statistics" output,
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 2 Jun 2010 07:06:14 +0000
(17:06 +1000)
committer
Ronnie 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
patch
|
blob
|
history
diff --git
a/tools/ctdb.c
b/tools/ctdb.c
index 91e8212520ad6d86363479ca36cb3c70ac1944be..c59a8b4acc6294cb13e0e9c30a7938699c800c9d 100644
(file)
--- a/
tools/ctdb.c
+++ b/
tools/ctdb.c
@@
-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_
star
t_time.tv_sec));
+ printf("Current time of statistics : %s", ctime(&s->statistics_
curren
t_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++) {