Skip to content

Commit 4fdb678

Browse files
authored
Merge pull request #50 from licliu/bz2166716
Fix dmi_cache_size_2 will add unit twice.
2 parents 9ec2b11 + c217e2b commit 4fdb678

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/dmidecode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,8 +1843,6 @@ void dmi_cache_size_2(xmlNode *node, const char *tagname, u32 code)
18431843
size.l = code << 6;
18441844
size.h = code >> 26;
18451845
} else {
1846-
dmixml_AddAttribute(caches_n, "unit", "KB");
1847-
dmixml_AddTextContent(caches_n, "%i", code);
18481846
size.l = code;
18491847
size.h = 0;
18501848
}

0 commit comments

Comments
 (0)