mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Provide better feedback during hashing
This commit is contained in:
parent
436029e0f2
commit
68a05a011d
@ -225,7 +225,8 @@ namespace Wabbajack.Common
|
||||
{
|
||||
await using var fs = file.OpenRead();
|
||||
var config = new xxHashConfig {HashSizeInBits = 64};
|
||||
var value = await xxHashFactory.Instance.Create(config).ComputeHashAsync(fs);
|
||||
await using var hs = new StatusFileStream(fs, $"Hashing {file}");
|
||||
var value = await xxHashFactory.Instance.Create(config).ComputeHashAsync(hs);
|
||||
return new Hash(BitConverter.ToUInt64(value.Hash));
|
||||
}
|
||||
catch (IOException)
|
||||
|
@ -298,7 +298,7 @@ namespace Wabbajack.Lib
|
||||
.Where(e => e.Extension != Consts.HashFileExtension)
|
||||
.ToList();
|
||||
|
||||
Utils.Log($"Found {toHash} files to hash");
|
||||
Utils.Log($"Found {toHash.Count} files to hash");
|
||||
|
||||
var hashResults = await
|
||||
toHash
|
||||
|
Loading…
Reference in New Issue
Block a user