From e58ad35fb020fe8ab3599487129c27b3db123052 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Mon, 14 Sep 2015 16:42:32 +0200 Subject: Update siteinfo.php --- mod/siteinfo.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/siteinfo.php') diff --git a/mod/siteinfo.php b/mod/siteinfo.php index 8281a7a0a..14aaef144 100644 --- a/mod/siteinfo.php +++ b/mod/siteinfo.php @@ -150,6 +150,9 @@ function siteinfo_content(&$a) { if(file_exists('doc/site_donate.html')) $donate .= file_get_contents('doc/site_donate.html'); + if(function_exists('sys_getloadavg')) + $loadavg = sys_getloadavg(); + $o = replace_macros(get_markup_template('siteinfo.tpl'), array( '$title' => t('$Projectname'), '$description' => t('This is a hub of $Projectname - a global cooperative network of decentralized privacy enhanced websites.'), @@ -158,6 +161,8 @@ function siteinfo_content(&$a) { '$tag' => $tag, '$polled' => t('Last background fetch: '), '$lastpoll' => get_poller_runtime(), + '$load_average' => t('Current load average: '), + '$loadavg_all' => $loadavg[0] . ', ' . $loadavg[1] . ', ' . $loadavg[2], '$commit' => $commit, '$web_location' => t('Running at web location') . ' ' . z_root(), '$visit' => t('Please visit redmatrix.me to learn more about $Projectname.'), -- cgit v1.2.3