mirror of
https://github.com/nsnail/dot.git
synced 2025-06-19 22:08:16 +08:00
<fix>
This commit is contained in:
@ -83,7 +83,7 @@ public partial class Main : ToolBase<Option>
|
||||
}
|
||||
}
|
||||
|
||||
private void WriteParts(HttpResponseMessage rsp, string mainFilePath //
|
||||
private void WritePart(HttpResponseMessage rsp, string mainFilePath //
|
||||
, long startPos, long endPos //
|
||||
, Action<int> rateHandle)
|
||||
{
|
||||
@ -167,7 +167,7 @@ public partial class Main : ToolBase<Option>
|
||||
// ReSharper disable once AccessToDisposedClosure
|
||||
using var getRsp
|
||||
= http.Send(getReq, HttpCompletionOption.ResponseHeadersRead);
|
||||
WriteParts(getRsp, mainFilePath, startPos, endPos, x => {
|
||||
WritePart(getRsp, mainFilePath, startPos, endPos, x => {
|
||||
tChild.Increment(x);
|
||||
tParent.Increment(x);
|
||||
});
|
||||
|
@ -5,7 +5,7 @@ public class Option : OptionBase
|
||||
[CommandOption("-b|--buffer-size")]
|
||||
[Description(nameof(Str.BufferSize))]
|
||||
[Localization(typeof(Str))]
|
||||
[DefaultValue(8)]
|
||||
[DefaultValue(8096)]
|
||||
public int BufferSize { get; set; }
|
||||
|
||||
[CommandOption("-c|--chunk-number")]
|
||||
|
Reference in New Issue
Block a user