[jbosstools-issues] [JBoss JIRA] (JBIDE-13990) Linux usage stats hardcoded to x86 so no data collected for x86_64
Nick Boldt (JIRA)
jira-events at lists.jboss.org
Thu Apr 11 16:22:55 EDT 2013
[ https://issues.jboss.org/browse/JBIDE-13990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766617#comment-12766617 ]
Nick Boldt edited comment on JBIDE-13990 at 4/11/13 4:21 PM:
-------------------------------------------------------------
OK, so scan the output from *getOSVersion()* for the regex "amd64|x86_64".
If found, it's 64. If not, assume 32.
At least you'll get SOME 64-bit data that way.
Or you could scan for 32-bit strings, and if that's not found, and the 64-bit strings aren't found either, then you need a third category, "unknown".
Then you would have definite data for 32-bit & 64-bit, plus a bucket of "probably 32-bit" which you can elect to merge in or keep separate depending on what statistical analysis you want to do.
was (Author: nickboldt):
OK, so scan the output from *getOSVersion()* for the regex "amd64|x86_64".
If found, it's 64. If not, assume 32.
At least you'll get SOME 64-bit data that way.
> Linux usage stats hardcoded to x86 so no data collected for x86_64
> ------------------------------------------------------------------
>
> Key: JBIDE-13990
> URL: https://issues.jboss.org/browse/JBIDE-13990
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: usage
> Affects Versions: 4.0.1.Final, 4.1.0.Alpha2
> Reporter: Nick Boldt
> Assignee: Andre Dietisheim
>
> [~maxandersen] found this bug today when looking at why we have no 64-bit Linux usage data:
> {code:title=https://github.com/jbosstools/jbosstools-base/blob/master/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/EclipseUserAgent.java#L35}
> private static final String USERAGENT_LINUX = "{0}/{1} (X11; U; Linux i686; {3})"; //$NON-NLS-1$
> {code}
> Suggestion: we should replace i686 with \{2\}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list