Permalink
Browse files

Sort of working again

  • Loading branch information...
1 parent dfcff44 commit e999d77214c1e82f9ee9731184d642110e60fcf9 Barry Carter committed Jun 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bc-elec-bill.pl
View
@@ -148,7 +148,7 @@
debug("$watts watts:",@hypusage,"price",@hyprice);
- print "At $watts watts: $hyprice[1] ($hyprice[0] - $hyprice[2])\n";
+ printf("%5d watts: \$%.2f (\$%.2f - \$%.2f)\n", $watts, @hyprice[1,0,2]);
}
# work out cost of $n kilowatthours of electricity, using tiers

0 comments on commit e999d77

Please sign in to comment.