diff options
Diffstat (limited to 'core/configuredivecomputerthreads.cpp')
-rw-r--r-- | core/configuredivecomputerthreads.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/configuredivecomputerthreads.cpp b/core/configuredivecomputerthreads.cpp index 9dd83a6ea..a2b54e0c7 100644 --- a/core/configuredivecomputerthreads.cpp +++ b/core/configuredivecomputerthreads.cpp @@ -1566,7 +1566,7 @@ void DeviceThread::event_cb(dc_device_t *device, dc_event_type_t event, const vo switch (event) { case DC_EVENT_PROGRESS: - dt->progressCB(100.0 * (double)progress->current / (double)progress->maximum); + dt->progressCB(lrint(100.0 * (double)progress->current / (double)progress->maximum)); break; default: emit dt->error("Unexpected event recived"); |