diff options
author | Peter Schiffer <pschiffe@redhat.com> | 2014-02-05 12:17:29 +0100 |
---|---|---|
committer | Peter Schiffer <pschiffe@redhat.com> | 2014-02-05 12:17:29 +0100 |
commit | cd4bea25e723050a829681e0b1d0ef964cc2f056 (patch) | |
tree | ff6b2bc6b61cc21df9f344f0fc57b8fd3fa9f716 | |
parent | f21780305ce371423250e59c9cd0be2d7cb6606d (diff) | |
download | openlmi-providers-cd4bea25e723050a829681e0b1d0ef964cc2f056.tar.gz openlmi-providers-cd4bea25e723050a829681e0b1d0ef964cc2f056.tar.xz openlmi-providers-cd4bea25e723050a829681e0b1d0ef964cc2f056.zip |
Hardware: don't set ConfiguredMemoryClockSpeed if it's unknown
-rw-r--r-- | src/hardware/LMI_PhysicalMemoryProvider.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hardware/LMI_PhysicalMemoryProvider.c b/src/hardware/LMI_PhysicalMemoryProvider.c index 9413967..c859671 100644 --- a/src/hardware/LMI_PhysicalMemoryProvider.c +++ b/src/hardware/LMI_PhysicalMemoryProvider.c @@ -102,8 +102,6 @@ static CMPIStatus LMI_PhysicalMemoryEnumInstances( "This object represents one physical memory module in system."); LMI_PhysicalMemory_Set_InstanceID(&lmi_phys_mem, instance_id); LMI_PhysicalMemory_Set_Name(&lmi_phys_mem, dmi_memory.modules[i].name); - LMI_PhysicalMemory_Set_ConfiguredMemoryClockSpeed(&lmi_phys_mem, - dmi_memory.modules[i].speed_clock); LMI_PhysicalMemory_Set_TotalWidth(&lmi_phys_mem, dmi_memory.modules[i].total_width); LMI_PhysicalMemory_Set_DataWidth(&lmi_phys_mem, @@ -113,6 +111,10 @@ static CMPIStatus LMI_PhysicalMemoryEnumInstances( LMI_PhysicalMemory_Set_Speed(&lmi_phys_mem, dmi_memory.modules[i].speed_time); } + if (dmi_memory.modules[i].speed_clock) { + LMI_PhysicalMemory_Set_ConfiguredMemoryClockSpeed(&lmi_phys_mem, + dmi_memory.modules[i].speed_clock); + } KReturnInstance(cr, lmi_phys_mem); } |