commit | 95aebc44e73b05d4e95774b983a63909de638808 | [log] [tgz] |
---|---|---|
author | Josh Triplett <josh@joshtriplett.org> | Tue Aug 20 17:20:16 2013 -0700 |
committer | Len Brown <len.brown@intel.com> | Sat Jan 18 22:34:09 2014 -0500 |
tree | 90b0ae555877d88f166d651fb938c58b24d301ed | |
parent | 74823419761c11830ea1819365f82cf3d48795cb [diff] |
turbostat: Add a helper to parse a single int out of a file Many different chunks of code in turbostat open a file, parse a single int out of it, and close it. Factor that out into a common function. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Len Brown <len.brown@intel.com>