danlucraft / swt

Contains everything required to write cross-platform desktop applications with JRuby and SWT.
Other
35 stars 14 forks source link

Fixing cpu detection #7

Closed PragTob closed 11 years ago

PragTob commented 12 years ago

Hi,

this should fix cpu recognition on all OS - at least linux and MacOSX. I didn't quite notice that @wasnotrice also already fixed it for Linux (not just Max), in his PR so this relates to #3 - but well since I was at it I removed a little duplication and added a tiny bit of memoization to prevent a duplicated call (as I presume that cpu and OS don't change in between)

I'd appreciate a quick merge if it"s good :-)

Cheers, Tobi