diff --git a/Readme b/Readme index 4bfc764c..c2311c32 100644 --- a/Readme +++ b/Readme @@ -176,6 +176,7 @@ History - fixed reading/writing of unencoded string fields from/to ID3v2 tags - fixed delete/shutdown after encoding options not changing when switching configuration - fixed ripping automation options not being available after switching configuration + - fixed hours missing from total duration in logs - Updated codecs diff --git a/Readme.de b/Readme.de index c7552eb1..b9170d41 100644 --- a/Readme.de +++ b/Readme.de @@ -175,6 +175,7 @@ Geschichte - Problem beim Lesen/Schreiben von unkodierten String-Feldern aus/in ID3v2-Tags behoben - Problem mit Optionen zum Löschen von Dateien und zum Herunterfahren nach der Kodierung beim Wechsel der Konfiguration behoben - Problem mit nicht verfügbaren Ripping-Automatisierungsoptionen nach Wechsel der Konfiguration behoben + - Problem mit fehlenden Stunden bei Gesamtzeit in Log-Dateien behoben - Aktualisierte Codecs diff --git a/src/engine/worker.cpp b/src/engine/worker.cpp index 10a64268..d3977df2 100644 --- a/src/engine/worker.cpp +++ b/src/engine/worker.cpp @@ -797,9 +797,7 @@ Void freac::ConvertWorker::LogConversionEnd(const String &uri, Int64 trackLength if (!Threads::Access::Value(cancel)) { UnsignedInt64 ticks = S::System::System::Clock() - trackStartTicks; - String duration = String(ticks / 1000 / 60 % 60 < 10 ? "0" : "").Append(String::FromInt(ticks / 1000 / 60 % 60)).Append(":") - .Append(ticks / 1000 % 60 < 10 ? "0" : "").Append(String::FromInt(ticks / 1000 % 60 )).Append(".") - .Append(ticks % 1000 < 100 ? (ticks % 1000 < 10 ? "00" : "0") : "").Append(String::FromInt(ticks % 1000 )); + String duration = BoCA::Utilities::ConvertTicksToTimestamp(ticks); String speed = String::FromFloat(Math::Round(Float(trackLength) / trackToConvert.GetFormat().rate / (Float(ticks) / 1000.0) * 10.0) / 10.0); if (!speed.Contains(".")) speed.Append(".0"); diff --git a/src/jobs/engine/convert.cpp b/src/jobs/engine/convert.cpp index a36b3961..42477c9d 100644 --- a/src/jobs/engine/convert.cpp +++ b/src/jobs/engine/convert.cpp @@ -1331,9 +1331,7 @@ Error freac::JobConvert::Perform() /* Log conversion duration and speed. */ UnsignedInt64 ticks = S::System::System::Clock() - startTicks; - String duration = String(ticks / 1000 / 60 % 60 < 10 ? "0" : "").Append(String::FromInt(ticks / 1000 / 60 % 60)).Append(":") - .Append(ticks / 1000 % 60 < 10 ? "0" : "").Append(String::FromInt(ticks / 1000 % 60 )).Append(".") - .Append(ticks % 1000 < 100 ? (ticks % 1000 < 10 ? "00" : "0") : "").Append(String::FromInt(ticks % 1000 )); + String duration = BoCA::Utilities::ConvertTicksToTimestamp(ticks); String speed = String::FromFloat(Math::Round(totalSeconds / (Float(ticks) / 1000.0) * 10.0) / 10.0); if (!speed.Contains(".")) speed.Append(".0");