Skip to content

Commit

Permalink
Update ss_grid_slot_ut.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 b419b4a commit a1681bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cacti/scripts/ss_grid_slot_ut.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// $Id$
// $Id: 898864bd80312c4af317fb2fc130dcad806ceed3 $
/*
+-------------------------------------------------------------------------+
| Copyright IBM Corp. 2006, 2022 |
Expand Down Expand Up @@ -36,7 +36,7 @@ function ss_grid_slot_ut($host = '', $clusterid = 0) {
}

if ($host != 'localhost' ) {
$ut = db_fetch_row_prepared("SELECT
$ut = db_fetch_row_prepared("SELECT " . SQL_NO_CACHE . "
IFNULL(memSlotUtil, 0) AS memSlotUtil,
IFNULL(slotUtil, 0) AS slotUtil,
IFNULL(cpuUtil, 0) AS cpuUtil
Expand Down Expand Up @@ -66,7 +66,7 @@ function ss_grid_slot_ut($host = '', $clusterid = 0) {
) AS results2",
array($clusterid));
}else{
$ut = db_fetch_row_prepared("SELECT
$ut = db_fetch_row_prepared("SELECT " . SQL_NO_CACHE . "
IFNULL(memSlotUtil/totalSlots, 0) AS memSlotUtil,
IFNULL(slotUtil/totalSlots, 0) AS slotUtil,
IFNULL(cpuUtil/totalSlots, 0) AS cpuUtil
Expand Down

0 comments on commit a1681bd

Please sign in to comment.