Added get_cpu_speed to tools.systemtools#694
Conversation
Returns the maximum cpu speed in MHz.
There was a problem hiding this comment.
with does not exist in py2.4
There was a problem hiding this comment.
What minimal version of python should I keep in mind? 2.4?
|
In the file systemtools.py there is a constant |
There was a problem hiding this comment.
use
cpu_freq = f.read()/1000.0instead?
There was a problem hiding this comment.
Hmm, sorry, you're getting a string of course...
|
Remarks fixed in wpoely86#3, and added unit tests for This PR should be considered on hold until the above PR is handled by @wpoely86 . |
|
Ready for pull. |
|
@wpoely86: You mean, ready for merging. ;-) Just checked again, looks OK, so merging it. Thanks! |
Added get_cpu_speed to tools.systemtools
Returns the maximum cpu speed in MHz.