You are here

function perfmon_convert2array in Performance monitor 8

Same name and namespace in other branches
  1. 7 perfmon.inc \perfmon_convert2array()

Convert 2 array.

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

File

./perfmon.module, line 346
Stand-alone perfmon test system.

Code

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