diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-12 11:25:20 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-12 11:25:20 +0200 |
commit | 276adf93ffeb4e71a6fd06a181c2ec629a50007e (patch) | |
tree | 5796fbc81f0b22424ae890729af08db4a34a3bd5 /src/main/Watcher.java | |
parent | 98206c3aede24f7820c330f7e54e7247acc38c67 (diff) | |
download | Datafiller-276adf93ffeb4e71a6fd06a181c2ec629a50007e.tar.gz |
Fix status reporting
Diffstat (limited to 'src/main/Watcher.java')
-rw-r--r-- | src/main/Watcher.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/Watcher.java b/src/main/Watcher.java index bb790f0..6032095 100644 --- a/src/main/Watcher.java +++ b/src/main/Watcher.java @@ -29,6 +29,11 @@ class Watcher implements Runnable { @Override public void run() { int newCount = main.getProcessedTweets(); + if (newCount < 1) { + // database connection is being established? Whatever is the case, + // no status information should be printed. + return; + } int tweets_per_min = (newCount - previousCount) * 60 / interval; int tweets_per_sec = tweets_per_min / 60; elapsed_seconds += interval; |