Skip to content

Commit 37921c7

Browse files
committed
fixed exponent typo
1 parent 656bfe1 commit 37921c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NetStorage/NetStorage.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public bool Delete(string path)
8484

8585
public Stream Dir(string path, string format = "xml")
8686
{
87+
//TODO: strip final slash on dir command
8788
return execute("GET", path, new APIParams() { Action = "dir", Format = format });
8889
}
8990

@@ -175,7 +176,7 @@ public bool Upload(string path, FileInfo srcFile, bool? indexZip = null)
175176
DateTime mTime = srcFile.LastWriteTime;
176177
byte[] checksum = null;
177178
Stream stream;
178-
using (stream = new BufferedStream(srcFile.OpenRead(), 1024^2))
179+
using (stream = new BufferedStream(srcFile.OpenRead(), 1024*1024))
179180
{
180181
checksum = stream.ComputeHash(NetstorageCMSv35Signer.HashType.SHA256.Checksum);
181182
}

0 commit comments

Comments
 (0)