Module: appdb Branch: master Commit: f900599f6f97e81b375d54344b0858cddf023e96 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=f900599f6f97e81b375d54344...
Author: Jeremy Newman jnewman@codeweavers.com Date: Tue Nov 15 12:11:14 2016 -0600
add microtime_float, remove onlcick from maintainer list
---
include/util.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/include/util.php b/include/util.php index e0ec4a5..3afe390 100644 --- a/include/util.php +++ b/include/util.php @@ -216,7 +216,7 @@ function make_bugzilla_version_list($sVarname, $sSelectedValue = '') // returns a string containing the html for the maintainer rating list function make_maintainer_rating_list($varname, $cvalue) { - $sTxt = "<select id='ratingSelect' onchange='showHint(this)' name='$varname'>\n"; + $sTxt = "<select id='ratingSelect' name='$varname'>\n"; $sTxt .= "<option value="">Choose ...</option>\n"; $aRating = array("Platinum", "Gold", "Silver", "Bronze", "Garbage"); $iMax = count($aRating); @@ -233,6 +233,14 @@ function make_maintainer_rating_list($varname, $cvalue) return $sTxt; }
+// Function to calculate script execution time. +function microtime_float () +{ + list ($msec, $sec) = explode(' ', microtime()); + $microtime = (float)$msec + (float)$sec; + return $microtime; +} + /* Get the element with specified key from an array if it is defined */ function getInput($sVar, $aInput) {