summaryrefslogtreecommitdiffstats
path: root/src/dmidecode.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-05-14 17:11:55 +0200
committerDavid Sommerseth <davids@redhat.com>2009-05-14 17:11:55 +0200
commitfff6c8a1cd328ebce904b7fab4bdc642596a8ef5 (patch)
treeb8512ee940a03371805b84e97cd0e03863b6cb44 /src/dmidecode.c
parent9d47720a88ee77ac4c0ab5f138a8eaf601c492d0 (diff)
downloadpython-dmidecode-fff6c8a1cd328ebce904b7fab4bdc642596a8ef5.tar.gz
python-dmidecode-fff6c8a1cd328ebce904b7fab4bdc642596a8ef5.tar.xz
python-dmidecode-fff6c8a1cd328ebce904b7fab4bdc642596a8ef5.zip
Remove 'ns' from the speed_ns attribute in memory section
Diffstat (limited to 'src/dmidecode.c')
-rw-r--r--src/dmidecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmidecode.c b/src/dmidecode.c
index 422287c..da6b72b 100644
--- a/src/dmidecode.c
+++ b/src/dmidecode.c
@@ -2645,7 +2645,7 @@ void dmi_memory_device_speed(xmlNode *node, u16 code)
if(code == 0) {
dmixml_AddAttribute(data_n, "unkown", "1");
} else {
- dmixml_AddAttribute(data_n, "speed_ns", "%.1f ns", (float) 1000 / code);
+ dmixml_AddAttribute(data_n, "speed_ns", "%.1f", (float) 1000 / code);
dmixml_AddAttribute(data_n, "unit", "MHz");
dmixml_AddTextContent(data_n, "%i", code);
}