From b51e7ca2e2fa1eac6182737fb36d83e5fb8cc352 Mon Sep 17 00:00:00 2001 From: Oliver Bock Date: Wed, 2 Dec 2015 12:50:47 +0000 Subject: [PATCH 1/3] Migrated to new BOINC DB API --- html/ops/pass_percentage_by_platform.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/ops/pass_percentage_by_platform.php b/html/ops/pass_percentage_by_platform.php index 595f6d91f9..6e385e27df 100644 --- a/html/ops/pass_percentage_by_platform.php +++ b/html/ops/pass_percentage_by_platform.php @@ -113,7 +113,8 @@ ORDER BY $query_order "; -$result = _mysql_query($main_query); +$db = BoincDb::get(); +$result = $db->do_query($main_query); start_table(); table_header( @@ -122,7 +123,7 @@ table_header( "Failed
Uploading", "Failed
Uploaded", "Aborted" ); -while ($res = _mysql_fetch_object($result)) { +while ($res = $result->fetch_object()) { $av = BoincAppVersion::lookup_id($res->app_version_id); if ($av) { $p = BoincPlatform::lookup_id($av->platformid); @@ -175,11 +176,10 @@ while ($res = _mysql_fetch_object($result)) { echo $res->fail_rate6; echo "%  "; - echo "\n"; } -_mysql_free_result($result); +$result->free(); echo "\n"; From f9a9119002e5531a241b0affadf4fdbdbb32defe Mon Sep 17 00:00:00 2001 From: Oliver Bock Date: Wed, 2 Dec 2015 12:51:13 +0000 Subject: [PATCH 2/3] Added missing tag --- html/ops/pass_percentage_by_platform.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/ops/pass_percentage_by_platform.php b/html/ops/pass_percentage_by_platform.php index 6e385e27df..21c67fedc5 100644 --- a/html/ops/pass_percentage_by_platform.php +++ b/html/ops/pass_percentage_by_platform.php @@ -138,6 +138,8 @@ while ($res = $result->fetch_object()) { default: $ver_name .= " (unknown processor type)"; } } + echo ""; + echo "$ver_name"; echo ""; From cd313414ce1f078cb079cfa4beca5a8dd4b20f32 Mon Sep 17 00:00:00 2001 From: Oliver Bock Date: Wed, 2 Dec 2015 12:57:30 +0000 Subject: [PATCH 3/3] New DB API doesn't need this anymore --- html/ops/pass_percentage_by_platform.php | 1 - 1 file changed, 1 deletion(-) diff --git a/html/ops/pass_percentage_by_platform.php b/html/ops/pass_percentage_by_platform.php index 21c67fedc5..418b202e4d 100644 --- a/html/ops/pass_percentage_by_platform.php +++ b/html/ops/pass_percentage_by_platform.php @@ -18,7 +18,6 @@ require_once("../inc/util_ops.inc"); -db_init(); admin_page_head("Result summary per app version"); // modified by Bernd Machenschalk 2007