From 2a757b1b953fa1670e8a4ccdd5fdff5293f2ab70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrice=20C=C3=B4t=C3=A9?= Date: Wed, 25 Jan 2023 08:58:59 -0500 Subject: [PATCH] Compatibility with klipper_estimator (#229) Changed estimated time string in order to be fully compatible with klipper_estimator. Format is now the same as Slic3r, PrusaSlicer and SuperSlicer --- src/libslic3r/GCode/GCodeProcessor.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index 2d6dd75e59..644d7aee71 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -474,15 +474,16 @@ void GCodeProcessor::TimeProcessor::post_process(const std::string& filename, st if (mode == PrintEstimatedStatistics::ETimeMode::Normal || machine.enabled) { char buf[128]; if(!s_IsBBLPrinter) - sprintf(buf, "; estimated printing time: %s\n", get_time_dhms(machine.time).c_str()); + // SoftFever: compatibility with klipper_estimator + sprintf(buf, "; estimated printing time (normal mode) = %s\n", get_time_dhms(machine.time).c_str()); else { //sprintf(buf, "; estimated printing time (%s mode) = %s\n", // (mode == PrintEstimatedStatistics::ETimeMode::Normal) ? "normal" : "silent", // get_time_dhms(machine.time).c_str()); - sprintf(buf, "; model printing time: %s; total estimated time: %s\n", - get_time_dhms(machine.time - machine.roles_time[ExtrusionRole::erCustom]).c_str(), - get_time_dhms(machine.time).c_str()); - } + sprintf(buf, "; model printing time: %s; total estimated time: %s\n", + get_time_dhms(machine.time - machine.roles_time[ExtrusionRole::erCustom]).c_str(), + get_time_dhms(machine.time).c_str()); + } ret += buf; } }