diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-12-30 12:51:42 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-12-30 12:51:42 -0800 |
commit | 991a6d89239c8fc754c34a15c50e730aac757742 (patch) | |
tree | 4030511c967114dd1987b358e9045337850e4095 | |
parent | d6350ac260b0d0bb4d04d3254c7809aba9754943 (diff) |
Fix log write percentage log message
-rw-r--r-- | camera.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -455,7 +455,7 @@ bool cam_readImageBlocks (Camera *cam, FILE *filePtr) { fwrite(buff, sizeof(*buff), bytesToRead, filePtr); // give progress every 30 writes if (++nWrites % 30 == 0) { - double percentComplete = (double)imgSize - jpgLen * 100.0 / (double)imgSize; + double percentComplete = ((double)imgSize - jpgLen) * 100.0 / (double)imgSize; LE_INFO("Image write %f%% complete", percentComplete); } jpgLen -= bytesToRead; |