summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r--src/usr/local/www/diag_tables.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index 567cb80..46512ed 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -169,10 +169,14 @@ if ($bogons || !empty($entries)) {
<?php
$last_updated = exec('/usr/bin/grep -i -m 1 -E "^# last updated" /etc/' . escapeshellarg($tablename) . '|cut -d"(" -f2|tr -d ")" ');
if ($last_updated != "") {
- print_info_box(gettext("Table last updated on ") . $last_updated . ".", 'info', false);
+ $last_update_msg = sprintf(gettext("Table last updated on %s."), $last_updated);
} else {
- print_info_box(gettext("Date of last update of table is unknown."), 'info', false);
+ $last_update_msg = gettext("Date of last update of table is unknown.");
}
+
+ $records_count_msg = sprintf(gettext("%s records."), number_format(count($entries), 0, gettext("."), gettext(",")));
+
+ print_info_box($last_update_msg . "&nbsp; &nbsp; " . $records_count_msg, 'info', false);
?>
</div>
</div>
OpenPOWER on IntegriCloud