From 3b201f166e8b3abd585ef8315058e74d5d1df6de Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 29 May 2013 20:46:26 +0200 Subject: [PATCH] Show hours on timestamp. --- .../java/net/pterodactylus/sonitus/data/filter/TimeCounterFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1c53d55..b584a48 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/filter/TimeCounterFilter.java +++ b/src/main/java/net/pterodactylus/sonitus/data/filter/TimeCounterFilter.java @@ -122,7 +122,7 @@ public class TimeCounterFilter extends DummyFilter { private void updateTimestamp(boolean now) { long timestamp = getMillis() / 1000; if (now || (lastTimestamp.get() != timestamp)) { - super.metadataUpdated(parentMetadata.get().comment(String.format("%02d:%02d", timestamp / 60, timestamp % 60))); + super.metadataUpdated(parentMetadata.get().comment(String.format("%s%02d:%02d", (timestamp >= 3600) ? String.format("%d:", timestamp / 3600) : "" , (timestamp % 3600) / 60, timestamp % 60))); lastTimestamp.set(timestamp); } } -- 2.7.4