Permalink
Browse files

fix counter issue

  • Loading branch information...
1 parent fb267a1 commit 7ee58ee2bbf9f1e1b1670ea4728ebd75e85130a0 @gsingers committed Feb 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/com/digitalpebble/behemoth/util/CorpusGenerator.java
@@ -171,7 +171,7 @@ public boolean accept(Path file) {
writer.append(key, value);
counter++;
if (reporter != null){
- reporter.incrCounter(Counters.DOC_COUNT, counter);
+ reporter.incrCounter(Counters.DOC_COUNT, 1);
}
} catch (FileNotFoundException e) {
throw new RuntimeException(e);

1 comment on commit 7ee58ee

jnioche commented on 7ee58ee Mar 1, 2012

Fixed in master, thanks!

[master 2b6f959] fixed counter issue for CorpusGenerator
1 files changed, 1 insertions(+), 1 deletions(-)

Please sign in to comment.