more memcached

git-svn-id: http://www.observium.org/svn/observer/trunk@3114 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-05-02 15:06:12 +00:00
parent 4f1ec54a47
commit 0376427943
9 changed files with 79 additions and 24 deletions
@@ -9,8 +9,17 @@ if (count($sensors))
echo('<table width="100%" valign="top">');
foreach ($sensors as $sensor)
{
### FIXME - make this "four graphs in popup" a function/include and "small graph" a function.
if ($config['memcached']['enable'])
{
$sensor['sensor_current'] = $memcache->get('sensor-'.$sensor['sensor_id'].'-value');
}
if(empty($sensor['sensor_current']))
{
$sensor['sensor_current'] = "NaN";
}
### FIXME - make this "four graphs in popup" a function/include and "small graph" a function.
### FIXME - So now we need to clean this up and move it into a function. Isn't it just "print-graphrow"?
$graph_colour = str_replace("#", "", $row_colour);