Skip to content

Commit fff6c8a

Browse files
author
David Sommerseth
committed
Remove 'ns' from the speed_ns attribute in memory section
1 parent 9d47720 commit fff6c8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dmidecode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,7 @@ void dmi_memory_device_speed(xmlNode *node, u16 code)
26452645
if(code == 0) {
26462646
dmixml_AddAttribute(data_n, "unkown", "1");
26472647
} else {
2648-
dmixml_AddAttribute(data_n, "speed_ns", "%.1f ns", (float) 1000 / code);
2648+
dmixml_AddAttribute(data_n, "speed_ns", "%.1f", (float) 1000 / code);
26492649
dmixml_AddAttribute(data_n, "unit", "MHz");
26502650
dmixml_AddTextContent(data_n, "%i", code);
26512651
}

0 commit comments

Comments
 (0)