Display approx. print-time in hours

Display the approximate print time of the sliced object(s) in
“hour, minutes and seconds” instead of “minutes and seconds”.
This commit is contained in:
M G Berberich 2019-08-04 10:28:41 +02:00 committed by Joseph Lenox
parent 4f5b935ecf
commit 56175357be

View File

@ -2302,8 +2302,9 @@ sub on_export_completed {
$estimator->parse_file($self->{export_gcode_output_file});
my $time = $estimator->time;
$self->{print_info_tim}->SetLabel(sprintf(
"%d minutes and %d seconds",
int($time / 60),
"%d hours, %d minutes and %d seconds",
int($time / 3600),
int(($time % 3600) / 60),
int($time % 60),
));
}