[drupal] right-justify sensor counter with 0-padding
This commit is contained in:
parent
7a2f7270be
commit
d9732d41bc
|
@ -859,7 +859,7 @@ function _logger_sensors_form() {
|
||||||
$row['function'] = $sensor->function;
|
$row['function'] = $sensor->function;
|
||||||
$row['sensor'] = $sensor->meter;
|
$row['sensor'] = $sensor->meter;
|
||||||
$row['access'] = unix_to_userlocaltime($sensor->access);
|
$row['access'] = unix_to_userlocaltime($sensor->access);
|
||||||
$row['counter'] = $sensor->value;
|
$row['counter'] = str_repeat('0', 10 - strlen($sensor->value)) . $sensor->value;
|
||||||
|
|
||||||
$rows[$sensor->meter] = $row;
|
$rows[$sensor->meter] = $row;
|
||||||
$row = array();
|
$row = array();
|
||||||
|
|
Loading…
Reference in New Issue