From: David ‘Bombe’ Roden Date: Tue, 28 May 2013 10:57:24 +0000 (+0200) Subject: Change format metadata output format. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=90775ea50a60ab2e9a5ab038caa033c5d34b67cb;p=sonitus.git Change format metadata output format. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/FormatMetadata.java b/src/main/java/net/pterodactylus/sonitus/data/FormatMetadata.java index 8e0f1f5..22fd271 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/FormatMetadata.java +++ b/src/main/java/net/pterodactylus/sonitus/data/FormatMetadata.java @@ -156,7 +156,7 @@ public class FormatMetadata { @Override public String toString() { - return String.format("%d Channel%s, %d Hz, %s", channels(), channels() != 1 ? "s" : "", frequency(), encoding()); + return String.format("%s kHz, %d Channel%s, %s", frequency() / 1000.0, channels(), channels() != 1 ? "s" : "", encoding()); } }