Fixed overhead with array iteration

This commit is contained in:
Stephen Hoogendijk
2015-06-25 11:56:54 +02:00
parent 4b5e070e0a
commit fe1d902d39
+2 -1
View File
@@ -59,8 +59,9 @@ class ResultSet
public function getPoints($metricName = '', array $tags = array())
{
$points = array();
$series = $this->getSeries();
foreach ($this->getSeries() as $serie) {
foreach ($series as $serie) {
if ((empty($metricName) && empty($tags)
|| $serie['name'] == $metricName