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

View File

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