From: David ‘Bombe’ Roden Date: Tue, 28 May 2013 10:59:32 +0000 (+0200) Subject: Initialize start time with a value that will always be different. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7f47f7e6579aa91bf5e867f7a6ea8155761eb26a;p=sonitus.git Initialize start time with a value that will always be different. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/filter/TimeCounterFilter.java b/src/main/java/net/pterodactylus/sonitus/data/filter/TimeCounterFilter.java index faff0bd..6f31830 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/filter/TimeCounterFilter.java +++ b/src/main/java/net/pterodactylus/sonitus/data/filter/TimeCounterFilter.java @@ -43,7 +43,7 @@ public class TimeCounterFilter extends DummyFilter { 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