community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1663689 - /comdev/reporter.apache.org/site/render.js
Date Tue, 03 Mar 2015 12:49:31 GMT
Author: humbedooh
Date: Tue Mar  3 12:49:31 2015
New Revision: 1663689

URL: http://svn.apache.org/r1663689
Log:
be better at determining the versions

Modified:
    comdev/reporter.apache.org/site/render.js

Modified: comdev/reporter.apache.org/site/render.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/render.js?rev=1663689&r1=1663688&r2=1663689&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/render.js (original)
+++ comdev/reporter.apache.org/site/render.js Tue Mar  3 12:49:31 2015
@@ -498,7 +498,7 @@ function renderReleaseChart(releases, na
     var narr = []
     for (version in releases) {
 		if (new Date(releases[version]*1000).getFullYear() >= 1999 ) {
-			var major = parseInt(version) ? parseInt(version) : version
+			var major = parseFloat(version) ? parseFloat(version) : 1
 			var x = version.match(/(\d+\.\d+)\.\d+/)
 			if (x) {
 				major = parseFloat(x[1])



Mime
View raw message