Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Jan 31, 2024
1 parent 02dae0e commit 4cf4c6c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Snap.Hutao.Deployment.Runtime</id>
<version>1.15.1</version>
<version>1.15.2</version>
<authors>DGP Studio</authors>
<developmentDependency>true</developmentDependency>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Binary file modified src/Snap.Hutao.Deployment.Runtime/Snap.Hutao.Deployment.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Snap.Hutao.Deployment/HttpShardCopyWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Task CopyAsync(IProgress<TStatus> progress, CancellationToken token = def
ShardProgress shardProgress = new(progress, statusFactory, contentLength);
ParallelOptions options = new()
{
MaxDegreeOfParallelism = Math.Clamp(2, Environment.ProcessorCount, 6),
MaxDegreeOfParallelism = Math.Clamp(Environment.ProcessorCount, 2, 6),
CancellationToken = token,
};
return Parallel.ForEachAsync(shards, options, (shard, token) => CopyShardAsync(shard, shardProgress, token));
Expand Down
2 changes: 1 addition & 1 deletion src/Snap.Hutao.Deployment/Invocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static async Task RunDeploymentAsync(InvocationContext context)
ArgumentException.ThrowIfNullOrEmpty(path);

Console.WriteLine($"""
Snap Hutao Deployment Tool [1.15.1]
Snap Hutao Deployment Tool [1.15.2]
PackagePath: {path}
FamilyName: {name}
------------------------------------------------------------
Expand Down

0 comments on commit 4cf4c6c

Please sign in to comment.