Fixes an issue: Slic3r outputs Weight: %.1fg, Cost: %.1f on command line,

instead of filling in the numbers.

https://github.com/prusa3d/Slic3r/issues/144
This commit is contained in:
bubnikv 2017-02-22 12:01:31 +01:00
parent 8174c05df4
commit 9f660738b3

View file

@ -268,7 +268,7 @@ sub generate_support_material {
}
$self->set_step_done(STEP_SUPPORTMATERIAL);
my $stats = "Weight: %.1fg, Cost: %.1f" , $self->print->total_weight, $self->print->total_cost;
my $stats = sprintf "Weight: %.1fg, Cost: %.1f" , $self->print->total_weight, $self->print->total_cost;
$self->print->status_cb->(85, $stats);
}