Initialize start time with a value that will always be different.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 28 May 2013 10:59:32 +0000 (12:59 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 28 May 2013 10:59:32 +0000 (12:59 +0200)
src/main/java/net/pterodactylus/sonitus/data/filter/TimeCounterFilter.java

index faff0bd..6f31830 100644 (file)
@@ -43,7 +43,7 @@ public class TimeCounterFilter extends DummyFilter {
        private final boolean resetOnMetadataUpdate;
 
        /** The last displayed timestamp. */
        private final boolean resetOnMetadataUpdate;
 
        /** The last displayed timestamp. */
-       private final AtomicLong lastTimestamp = new AtomicLong(0);
+       private final AtomicLong lastTimestamp = new AtomicLong(-1);
 
        /**
         * Creates a new time counter filter that automatically resets the counter when
 
        /**
         * Creates a new time counter filter that automatically resets the counter when