mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 10:10:42 +08:00
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:
parent
4f5b935ecf
commit
56175357be
@ -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),
|
||||
));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user