changeset 14:ac5f890f0779

Re #5: Add decimal places to progress percentage * Add 1dp of precision to the rounding
author IBBoard <dev@ibboard.co.uk>
date Sat, 30 Oct 2010 10:19:52 +0000
parents c722ef9ace4c
children 2ed5aeb5da9d
files install.xml
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/install.xml	Sat Oct 30 09:46:50 2010 +0000
+++ b/install.xml	Sat Oct 30 10:19:52 2010 +0000
@@ -28,7 +28,7 @@
 			<link type="template" href="subsilver2.xml" lang="en-gb">subsilver2</link>
 			<link type="contrib" href="contrib/SpecialAndNormalRanksIntegration.xml" lang="en-gb">Special and Normal Ranks MOD integration</link>
 		</link-group>
-		<mod-version>1.0</mod-version>
+		<mod-version>1.0.2</mod-version>
 		<installation>
 			<level>intermediate</level>
 			<time>600</time>
@@ -36,6 +36,13 @@
 		</installation>
 		<history>
 			<entry>
+				<date>2010-10-30</date>
+				<rev-version>1.0.2</rev-version>
+				<changelog lang="en-gb">
+					<change>Change: Add fractions of a percent, as suggested by the phpBB team (1 decimal place)</change>
+				</changelog>
+			</entry>
+			<entry>
 				<date>2010-10-03</date>
 				<rev-version>1.0.1</rev-version>
 				<changelog lang="en-gb">
@@ -118,7 +125,7 @@
 					{
 						$rank_difference = $next_rank_post_count - $rank['rank_min'];
 						$user_progress = $user_posts - $rank['rank_min'];
-						$percent_complete = round(($user_progress / $rank_difference) * 100);
+						$percent_complete = round(($user_progress / $rank_difference) * 100, 1);
 					}
 ]]>
 				</action>