From b1c5200a5040d66b2d17b2a420f1401738a42938 Mon Sep 17 00:00:00 2001 From: Potatoes <48143760+potatoes1286@users.noreply.github.com> Date: Tue, 25 Jun 2024 19:07:58 -0400 Subject: [PATCH] constrain decimals to 2 places --- Soundtrack/SoundtrackPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Soundtrack/SoundtrackPlayer.cs b/Soundtrack/SoundtrackPlayer.cs index fe2ed16..925e3b2 100644 --- a/Soundtrack/SoundtrackPlayer.cs +++ b/Soundtrack/SoundtrackPlayer.cs @@ -126,7 +126,7 @@ public virtual void SwitchSong(Track newTrack, float timeOverride = 0) { SongLength = newTrack.Clip.length; - PluginMain.DebugLog.LogInfo($"{Time.time}: Playing track {newTrack.Name} ({newTrack.Type}, metadata {newTrack.Metadata.ToOneLine()}) of calculated length {SongLength} with override time {timeOverride}."); + PluginMain.DebugLog.LogInfo($"{Time.time:F}: Playing track {newTrack.Name} ({newTrack.Type}, metadata {newTrack.Metadata.ToOneLine()}) of calculated length {SongLength:F} with override time {timeOverride}."); //If current source is 0, new source is 1, and vice versa. int newSource = CurrentAudioSource == 0 ? 1 : 0;