diff -r 36c72e368948 -r 74d56bed75b9 www/prod_forum.php --- a/www/prod_forum.php Sat May 11 16:55:41 2019 +0200 +++ b/www/prod_forum.php Sat May 11 17:25:58 2019 +0200 @@ -150,8 +150,8 @@ } echo PHP_EOL . PHP_EOL; -echo "Specerij, kruid, brouwzout etc Type grondstof Gebruik tijdens Hoeveel" . PHP_EOL; -echo "------------------------------ --------------- -------------------- ----------" . PHP_EOL; +echo "Specerij, kruid, brouwzout etc Type grondstof Gebruik tijdens Hoeveel" . PHP_EOL; +echo "------------------------------ --------------- -------------------- -----------" . PHP_EOL; $arr = json_decode($row['json_miscs'], true); foreach($arr as $item) { $amount = floatval($item['m_amount']) * 1000; @@ -163,9 +163,9 @@ $gebruik = sprintf("%s %d min",$miscuse[$use_use],$time); else $gebruik = $miscuse[$use_use]; - $hoeveel = sprintf("%.1f %s",$amount,$aiw ? "gr":"ml"); + $hoeveel = sprintf("%.2f %s",$amount,$aiw ? "gr":"ml"); - echo sprintf("%s %-15s %-20s %10s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL; + echo sprintf("%s %-15s %-20s %11s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL; } echo PHP_EOL . PHP_EOL;