Skip to content

Commit

Permalink
Update ss_grid_effectiveut.php
Browse files Browse the repository at this point in the history
patch that disables the query cache for the Cacti Data Collectors - IBM#10

Signed-off-by: Stephanie Buser <[email protected]>
  • Loading branch information
sbuser-git authored Dec 1, 2022
1 parent a1681bd commit cd92ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cacti/scripts/ss_grid_effectiveut.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// $Id$
// $Id: 441408528d80d8be03d377a6c23a42ceede5ec1c $
/*
+-------------------------------------------------------------------------+
| Copyright IBM Corp. 2006, 2022 |
Expand Down Expand Up @@ -34,7 +34,7 @@ function ss_grid_effectiveut($clusterid = 0) {
$sql_where = "AND ghr.clusterid = $clusterid";
}

$effectiveUT = db_fetch_cell("SELECT
$effectiveUT = db_fetch_cell("SELECT " . SQL_NO_CACHE . "
SUM(effectiveUtil*totalSlots)/SUM(totalSlots) AS effectiveUtil
FROM (
SELECT host, GREATEST(memSlotUtil, slotUtil, cpuUtil) AS effectiveUtil, totalSlots
Expand Down

0 comments on commit cd92ca6

Please sign in to comment.