Merge pull request #1150 from bergware/master

Make script executable
This commit is contained in:
tom mortensen
2022-08-20 07:16:49 -07:00
committed by GitHub
2 changed files with 1 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ function autoscale($value) {
$decimals = $base ? ($value>=100 ? 0 : ($value>=10 ? 1 : (round($value*100)%100===0 ? 0 : 2))) : 0;
return number_format($value, $decimals, '.', $value>9999 ? ',' : '').' '.$unit[$base];
}
function align($text, $w=30) {
function align($text, $w=25) {
return $text.str_repeat(' ',$w-min(strlen($text),$w-1));
}
function gap($text) {

View File