r2604 - renderRackObject(): speed up by requesting as little data from getResidentRa...
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 3 Apr 2009 17:56:22 +0000 (17:56 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 3 Apr 2009 17:56:22 +0000 (17:56 +0000)
inc/interface.php

index 56a3fbc50f234b3f61370dc99491843211a5b754..fca288f9b5cbbb4c36f797b08e842776b989d130 100644 (file)
@@ -1057,10 +1057,8 @@ function renderRackObject ($object_id = 0)
        echo "<td class=pcright>";
        // rackspace portlet
        startPortlet ('rackspace allocation');
-       // FIXME: now we call getRackData() twice
-       $racks = getResidentRacksData ($object_id);
-       foreach ($racks as $rackData)
-               renderRack ($rackData['id'], $object_id);
+       foreach (getResidentRacksData ($object_id, FALSE) as $rack_id)
+               renderRack ($rack_id, $object_id);
        echo '<br>';
        finishPortlet();
        echo "</td></tr>";