diff --git a/classes/class_format.php b/classes/class_format.php index db52778c..1dfa59e8 100644 --- a/classes/class_format.php +++ b/classes/class_format.php @@ -83,15 +83,14 @@ public static function get_ratio_html($Dividend, $Divisor, $Color = true) * Returns ratio * @param int $Dividend * @param int $Divisor - * @return boolean|string|float + * @param int $Decimal floor to n decimals (eg Subtract .005 to floor to 2 decimals) + * @return boolean|string */ public function get_ratio ($Dividend, $Divisor, $Decimal = 2) { if ($Divisor == 0 && $Dividend == 0) return false; if ($Divisor == 0) return '∞'; - -// Subtract .005 to floor to 2 decimals - return number_format(max($Dividend/$Divisor - 0.005, 0), $Decimal); + return number_format(max($Dividend/$Divisor - (0.5/pow(10, $Decimal)), 0), $Decimal); } /** diff --git a/classes/class_torrent_form.php b/classes/class_torrent_form.php index 86fcb996..2c873c19 100644 --- a/classes/class_torrent_form.php +++ b/classes/class_torrent_form.php @@ -80,17 +80,11 @@ function head() { NewTorrent) { ?> - - + + - + - - - - -
- x -

- -
-
-
- + + + + +
+ x +

+ +
+
+
+
- Torrent file - - - Torrent file:
- Type - Type:
-

Be sure that your torrent is approved by the rules. Not doing this will result in a warning or worse.

+

Be sure that your torrent is approved by the rules. Not doing this will result in a warning or worse.

NewTorrent) { ?>

After uploading the torrent, you will have a one hour grace period during which no one other than you can fill requests with this torrent. Make use of this time wisely, and search the requests.

@@ -247,18 +241,18 @@ function music_form($GenreTags) {

Do not include the words remaster, re-issue, MSFL Gold, limited edition, bonus tracks, bonus disc or country specific information in this field. That belongs in the edition information fields below, see this for further information. Also remember to use the correct capitalization for your upload. See the Capitalization Guidelines for more information.

MusicBrainz
MusicBrainz: