diff options
author | Thomas White <taw@physics.org> | 2011-03-22 15:54:02 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:20 +0100 |
commit | cac53b244e7cc2202f17e01149c5a39643da58b5 (patch) | |
tree | e4d2eba73908efc08a120a4229e5aa559c44f2b4 /src | |
parent | 254d6459a53e12b39af6015e681925a70ff46393 (diff) |
indexamajig: Refine output
Diffstat (limited to 'src')
-rw-r--r-- | src/indexamajig.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 6094c552..42a91e53 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -38,7 +38,7 @@ #include "reflist-utils.h" - +/* Write statistics at APPROXIMATELY this interval */ #define STATS_EVERY_N_SECONDS (5) @@ -396,14 +396,13 @@ static void finalise_image(void *qp, void *pp) qargs->n_processed++; clock_gettime(CLOCK_REALTIME, &tp); - if ( tp.tv_sec > qargs->t_last_stats+STATS_EVERY_N_SECONDS ) { + if ( tp.tv_sec >= qargs->t_last_stats+STATS_EVERY_N_SECONDS ) { STATUS("%i out of %i indexed so far," - " %i out of %i in the last %i seconds.\n", + " %i out of %i since the last message.\n", qargs->n_indexable, qargs->n_processed, qargs->n_indexable - qargs->n_indexable_last_stats, - qargs->n_processed - qargs->n_processed_last_stats, - STATS_EVERY_N_SECONDS); + qargs->n_processed - qargs->n_processed_last_stats); qargs->n_processed_last_stats = qargs->n_processed; qargs->n_indexable_last_stats = qargs->n_indexable; |