Fix stats output

This commit is contained in:
Alessandro Ranellucci 2017-03-17 21:47:22 +01:00
parent d8a8e0d1c1
commit abbc458f10

View File

@ -459,7 +459,7 @@ sub generate_support_material {
$self->_support_material->generate($self);
$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);
}