mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Collection and output of db and snmp stats (#5049)
This commit is contained in:
committed by
Neil Lathwood
parent
6708c7cb81
commit
db240cb4eb
@@ -260,10 +260,8 @@ $gentime = substr($runtime, 0, 5);
|
||||
|
||||
# FIXME - move this
|
||||
if ($config['page_gen']) {
|
||||
echo(' <br />MySQL: Cell '.($db_stats['fetchcell']+0).'/'.round($db_stats['fetchcell_sec']+0, 3).'s'.
|
||||
' Row '.($db_stats['fetchrow']+0). '/'.round($db_stats['fetchrow_sec']+0, 3).'s'.
|
||||
' Rows '.($db_stats['fetchrows']+0).'/'.round($db_stats['fetchrows_sec']+0, 3).'s'.
|
||||
' Column '.($db_stats['fetchcol']+0). '/'.round($db_stats['fetchcol_sec']+0, 3).'s');
|
||||
echo '<br />';
|
||||
printStats();
|
||||
|
||||
$fullsize = memory_get_usage();
|
||||
unset($cache);
|
||||
|
||||
Reference in New Issue
Block a user