torrus, RT#10574
authorivan <ivan>
Mon, 24 Jan 2011 00:56:16 +0000 (00:56 +0000)
committerivan <ivan>
Mon, 24 Jan 2011 00:56:16 +0000 (00:56 +0000)
FS/FS/part_pkg/torrus_Common.pm

index cbd9ee3..66624ad 100644 (file)
@@ -80,7 +80,7 @@ sub calc_usage {
 
     #add usage details to invoice
     my $l = $self->_torrus_label;
-    my $d = "Last month's usage for $serviceid: ". sprintf('%2f',$max). $l;
+    my $d = "Last month's usage for $serviceid: ". sprintf('%.2f',$max). $l;
     $d .= " (". ($max+$inc). "$l - $inc$l included)" if $inc;
     $d .= " @ $money_char$rate/$l: $money_char$amount";