You are here

function perfmon_convert2array in Performance monitor 7

Same name and namespace in other branches
  1. 8 perfmon.module \perfmon_convert2array()

Convert 2 array.

2 calls to perfmon_convert2array()
perfmon_get_mysqlstatus in ./perfmon.inc
Mysql status.
perfmon_get_mysqlvariables in ./perfmon.inc
Mysql variables.

File

./perfmon.inc, line 360
Stand-alone perfmon test system.

Code

function perfmon_convert2array($variables) {
  $result = array();
  foreach ($variables as $parameter) {
    $result[$parameter->Variable_name] = $parameter->Value;
  }
  return $result;
}