javascript - Why is navigator.cpuClass incorrect? -


i trying acquire cpu type of visitors javascript using navigator.cpuclass in order offer them correct download. in tests have run example of navigator.cpuclass returning "win32" when expect "win64". systeminfo utility on pc returns:

intel64 family 6 model 15 stepping 11 genuineintel ~2400 mhz (q6600) further described at: http://ark.intel.com/product.aspx?id=29765

can tell me why javascript not seeing 64 bit cpu? need reliably detect cpu...

perhaps using 32 bit browser. trying out samples here, same results (win32) though i'm running 64 bit os (with 32 bit build of chrome).

however, in case, chrome's appversion string indicates runs under wow64 emulation layer. perhaps can find such hints others browsers well.

generally, can't detect cpu class reliably because never know whether browser took red or blue pill.

a pragmatic solution offer default choice based on browser returns, , allow user switch 64 bit version. since 32 bit software runs flawlessly in 64 bit environment (as proved case), users won't notice if pick 'wrong' download.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -