javasysmon
javasysmon copied to clipboard
Matcher fails for modelinfo on linux
model name : AMD Phenom(tm) II X6 1055T Processor
AMD CPUs are a problem because the model name doesn't actually tell you the frequency. For instance, the model you mention runs at 2.8 GHz, but there's no way to derive that from the text. The only remotely reasonable solution I can think of is to ship the jar with a lookup table of AMD model numbers. I'm not thrilled about this idea.
As a matter of interest, what does the cpuFrequencyInHz() call return for this model? Perhaps it should return -1 or throw an exception.