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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChow Loong Jin <hyperair@debian.org>2016-04-12 20:10:58 +0300
committerChow Loong Jin <hyperair@debian.org>2016-04-12 20:13:42 +0300
commit3d73fbf5fd71c4db5c780c48c59a1fa1041417a7 (patch)
tree8dbdc345e88e3a1ac644d0d4993c8c71adc64b46 /xs/src/libslic3r/GCode.hpp
parent4c622c504f8f7c479a8368f7672ec96426391554 (diff)
Use float for elapsed_time
When accumulating elapsed_time from many moves that take less than 1 second, elapsed_time does not get incremented because (unsigned int)0.9 = 0.
Diffstat (limited to 'xs/src/libslic3r/GCode.hpp')
-rw-r--r--xs/src/libslic3r/GCode.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/libslic3r/GCode.hpp b/xs/src/libslic3r/GCode.hpp
index 7aa0143a3..ebeb50e78 100644
--- a/xs/src/libslic3r/GCode.hpp
+++ b/xs/src/libslic3r/GCode.hpp
@@ -82,7 +82,7 @@ class GCode {
const Layer* layer;
std::map<const PrintObject*,Point> _seam_position;
bool first_layer; // this flag triggers first layer speeds
- unsigned int elapsed_time; // seconds
+ float elapsed_time; // seconds
double volumetric_speed;
GCode();