Commit c1d0adeb authored by David Morley's avatar David Morley
Browse files

fix for people with pingdom accounts with lots of monitors

parent ce9e368c
......@@ -186,12 +186,12 @@ preg_match_all('/<h3>Avg. resp. time this month<\/h3>
$responsetime = $matcheach[1][0];
//months monitored
preg_match_all('/<option value=(.*?)</i',$pingdom,$matchdates);
$implodemonths = implode(" ", $matchhistory[1]);
$months = count($matchdates[0]);
//uptime %
preg_match_all('/<h3>Uptime this month<\/h3>
<p class="large">(.*?)</',$pingdom,$matchper);
preg_match_all('/<h3>Uptime this month<\/h3>\s*<p class="large">(.*?)</',$pingdom,$matchper);
$uptime = preg_replace("/,/", ".", $matchper[1][0]);
//last check
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment