fixed log output of total file size

This commit is contained in:
Philipp Häfelfinger 2019-03-02 00:25:24 +01:00
parent bfd90cf1b6
commit 8659aba430
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func UploadImage(context *piwigo.PiwigoContext, filePath string, md5sum string,
}
fileSizeInKB := fileInfo.Size() / 1024
logrus.Infof("Uploading %s using chunksize of %d KB and total size of %d", filePath, context.ChunkSizeInKB, fileSizeInKB)
logrus.Infof("Uploading %s using chunksize of %d KB and total size of %d KB", filePath, context.ChunkSizeInKB, fileSizeInKB)
err = uploadImageChunks(filePath, context, fileSizeInKB, md5sum)
if err != nil {