diff --git a/Assets/USharpVideoSubtitles/Scripts/SubtitleManager.cs b/Assets/USharpVideoSubtitles/Scripts/SubtitleManager.cs index 929a8d3..a81db1d 100644 --- a/Assets/USharpVideoSubtitles/Scripts/SubtitleManager.cs +++ b/Assets/USharpVideoSubtitles/Scripts/SubtitleManager.cs @@ -808,7 +808,7 @@ private void FetchFromURL(VRCUrl url) public override void OnStringLoadSuccess(IVRCStringDownload result) { - LogMessage($"Remote string load success ({BytesToKilobytes(BitConverter.ToInt32(result.ResultBytes, 0))} kilobytes)"); + LogMessage($"Remote string load success ({BitConverter.ToInt32(result.ResultBytes, 0)} bytes)"); if (result.Url == _URLTmp) // User entered URL - to be synchronized ProcessInput(result.Result); @@ -1363,11 +1363,5 @@ private void SendCallback(string callbackName) callbackReceiver.SendCustomEvent(callbackName); } } - - private double BytesToKilobytes(long bytes) - { - const double bytesPerKilobyte = 1024.0; - return bytes / bytesPerKilobyte; - } } }