Last modified: 2007-04-05 14:04:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T11498, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9498 - Editcount is displaying strange percentages
Editcount is displaying strange percentages
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Editcount (Other open bugs)
unspecified
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-04 21:32 UTC by Matthew Beermann
Modified: 2007-04-05 14:04 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Beermann 2007-04-04 21:32:14 UTC
In the most recent version of Editcount (checked out from the SVN trunk), it's
reporting some strange percentages for certain users:

Total  	1,542  	100%
(Main) 	1,078 	0.06%
Talk 	27 	1.75%
User 	15 	0.97%
Image 	32 	2.08%
Template 	12 	0.78%
Newsletter 	51 	3.31%
Architecture Experience 	239 	15.5%
Architecture Experience Talk 	1 	0.06%
System Infrastructure 	84 	5.45%
System Infrastructure Talk 	3 	0.19%

Notice the (Main) namespace: 1,078 / 1,542 == 0.06%? I think this might just be
a formatting error of some kind - the real number should be 69.9%.
Comment 1 Brion Vibber 2007-04-05 14:04:31 UTC
Fixed in r21026.

The previous code was trying to calculate percentages using the localized number
formatting; this produced
bogus results when thousands separators or non-ASCII digits showed up.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links