Commit 00c72bc0 authored by Andrea Bolognani's avatar Andrea Bolognani
Browse files

Use uint for DomainCell.Memory


Signed-off-by: Andrea Bolognani's avatarAndrea Bolognani <abologna@redhat.com>
parent 7ac0b772
Pipeline #151887150 failed with stage
in 1 minute and 33 seconds
......@@ -1926,7 +1926,7 @@ type DomainNuma struct {
type DomainCell struct {
ID *uint `xml:"id,attr"`
CPUs string `xml:"cpus,attr"`
Memory string `xml:"memory,attr"`
Memory uint `xml:"memory,attr"`
Unit string `xml:"unit,attr,omitempty"`
MemAccess string `xml:"memAccess,attr,omitempty"`
Discard string `xml:"discard,attr,omitempty"`
......
......@@ -1177,7 +1177,7 @@ var domainTestData = []struct {
{
ID: &cellID0,
CPUs: "0-1",
Memory: "512000",
Memory: 512000,
Unit: "KiB",
MemAccess: "private",
Distances: &DomainCellDistances{
......@@ -1192,7 +1192,7 @@ var domainTestData = []struct {
{
ID: &cellID1,
CPUs: "2-3",
Memory: "512000",
Memory: 512000,
Unit: "KiB",
MemAccess: "private",
Distances: &DomainCellDistances{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment