Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/util/progress.h')
-rw-r--r--intern/cycles/util/progress.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/progress.h b/intern/cycles/util/progress.h
index 4b0ff08aa7e..f2d80e49ab8 100644
--- a/intern/cycles/util/progress.h
+++ b/intern/cycles/util/progress.h
@@ -200,12 +200,12 @@ class Progress {
total_pixel_samples = total_pixel_samples_;
}
- float get_progress() const
+ double get_progress() const
{
thread_scoped_lock lock(progress_mutex);
if (total_pixel_samples > 0) {
- return ((float)pixel_samples) / total_pixel_samples;
+ return ((double)pixel_samples) / (double)total_pixel_samples;
}
return 0.0f;
}