From f7a6b80bf61faf5c730477161fb633269e644de1 Mon Sep 17 00:00:00 2001 From: Francis Gonzales Date: Fri, 27 Nov 2015 21:49:38 -0500 Subject: [PATCH 1/2] Update xhprof_runs.php pmu field is integer. --- xhprof_lib/utils/xhprof_runs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xhprof_lib/utils/xhprof_runs.php b/xhprof_lib/utils/xhprof_runs.php index 2b486eaa..2ddaa754 100644 --- a/xhprof_lib/utils/xhprof_runs.php +++ b/xhprof_lib/utils/xhprof_runs.php @@ -428,7 +428,7 @@ public function save_run($xhprof_data, $type, $run_id = null, $xhprof_details = } - $sql['pmu'] = isset($xhprof_data['main()']['pmu']) ? $xhprof_data['main()']['pmu'] : ''; + $sql['pmu'] = isset($xhprof_data['main()']['pmu']) ? $xhprof_data['main()']['pmu'] : 0; $sql['wt'] = isset($xhprof_data['main()']['wt']) ? $xhprof_data['main()']['wt'] : ''; $sql['cpu'] = isset($xhprof_data['main()']['cpu']) ? $xhprof_data['main()']['cpu'] : ''; From fb772703a0f39720443e4ddfe1f45cf1338f2890 Mon Sep 17 00:00:00 2001 From: Francis Gonzales Date: Sun, 29 Nov 2015 21:31:06 -0500 Subject: [PATCH 2/2] Update xhprof_runs.php updating all integer fields --- xhprof_lib/utils/xhprof_runs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xhprof_lib/utils/xhprof_runs.php b/xhprof_lib/utils/xhprof_runs.php index 2ddaa754..7bfbf17e 100644 --- a/xhprof_lib/utils/xhprof_runs.php +++ b/xhprof_lib/utils/xhprof_runs.php @@ -429,8 +429,8 @@ public function save_run($xhprof_data, $type, $run_id = null, $xhprof_details = $sql['pmu'] = isset($xhprof_data['main()']['pmu']) ? $xhprof_data['main()']['pmu'] : 0; - $sql['wt'] = isset($xhprof_data['main()']['wt']) ? $xhprof_data['main()']['wt'] : ''; - $sql['cpu'] = isset($xhprof_data['main()']['cpu']) ? $xhprof_data['main()']['cpu'] : ''; + $sql['wt'] = isset($xhprof_data['main()']['wt']) ? $xhprof_data['main()']['wt'] : 0; + $sql['cpu'] = isset($xhprof_data['main()']['cpu']) ? $xhprof_data['main()']['cpu'] : 0; // The value of 2 seems to be light enugh that we're not killing the server, but still gives us lots of breathing room on