Bug #32
Only call dmidecode once in gather-centos4-i386
| Status: | Assigned | Start: | 04/18/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | nathan | % Done: | 0% |
|
| Category: | backend | Spent time: | - | |
| Target version: | 0.5.3 | Estimated time: | 0.50 hours | |
Description
This is a patch that should be applied after #30. It runs dmidecode only once, stores the output in an array and reuse the data whenever needed rather than calling it many times.
The patch also removes what looked like a debug print that shouldnt be there
Futher enhancement could be made by only parsing the output once and reusing the parsed result but this is a good first improvement I guess.
On Xen VMs dmidecode prints errors, so this makes things a bit more bearable,