fixed small calculation error that forced the upload to allocate 512MB instead of 512KB as upload buffer... ooops :-D

This commit is contained in:
Philipp Häfelfinger 2019-04-07 22:21:15 +02:00
parent 355d2a5f51
commit 2468bf3e16
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ func (context *PiwigoContext) initializeUploadChunkSize() error {
if err != nil { if err != nil {
return err return err
} }
context.chunkSizeInKB = userStatus.Result.UploadFormChunkSize * 1024 context.chunkSizeInKB = userStatus.Result.UploadFormChunkSize
logrus.Debugf("Got chunksize of %d KB from server.", context.chunkSizeInKB) logrus.Debugf("Got chunksize of %d KB from server.", context.chunkSizeInKB)
return nil return nil
} }