diff options
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; |