From 02afb52bd2c0ea83193bfe64adb851da974c3660 Mon Sep 17 00:00:00 2001 From: Kemal Setya Adhi Date: Mon, 17 Feb 2025 00:44:58 +0700 Subject: [PATCH] Increase isLongRunning param on hasher to 1 GB --- CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs b/CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs index 867c7f7a3..886aa7aac 100644 --- a/CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs +++ b/CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs @@ -1041,7 +1041,7 @@ protected virtual ConfiguredTaskAwaitable GetCryptoHashAsync( Hash.GetCryptoHashAsync(fileInfo, hmacKey, read => UpdateHashReadProgress(read, updateProgress, updateTotalProgress), - fileInfo is { Exists: true, Length: > 100 << 20 }, + fileInfo is { Exists: true, Length: > 1024 << 20 }, token); protected virtual ConfiguredTaskAwaitable GetCryptoHashAsync( @@ -1054,7 +1054,7 @@ protected virtual ConfiguredTaskAwaitable GetCryptoHashAsync( Hash.GetCryptoHashAsync(stream, hmacKey, read => UpdateHashReadProgress(read, updateProgress, updateTotalProgress), - stream is { Length: > 100 << 20 }, + stream is { Length: > 1024 << 20 }, token); protected virtual byte[] GetCryptoHash( @@ -1112,7 +1112,7 @@ protected virtual ConfiguredTaskAwaitable GetHashAsync( where T : NonCryptographicHashAlgorithm, new() => Hash.GetHashAsync(fileInfo, read => UpdateHashReadProgress(read, updateProgress, updateTotalProgress), - fileInfo is { Exists: true, Length: > 100 << 20 }, + fileInfo is { Exists: true, Length: > 1024 << 20 }, token); protected virtual ConfiguredTaskAwaitable GetHashAsync( @@ -1123,7 +1123,7 @@ protected virtual ConfiguredTaskAwaitable GetHashAsync( where T : NonCryptographicHashAlgorithm, new() => Hash.GetHashAsync(stream, read => UpdateHashReadProgress(read, updateProgress, updateTotalProgress), - stream is { Length: > 100 << 20 }, + stream is { Length: > 1024 << 20 }, token); protected virtual byte[] GetHash(