Skip to content

Commit c3cabd4

Browse files
committed
persist: update balloon related structs
Signed-off-by: George Pisaltu <[email protected]>
1 parent 2bdc44d commit c3cabd4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/devices/src/virtio/balloon/persist.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ impl BalloonStatsState {
6262
BalloonStats {
6363
target_pages: 0,
6464
actual_pages: 0,
65-
target_mb: 0,
66-
actual_mb: 0,
65+
target_mib: 0,
66+
actual_mib: 0,
6767
swap_in: self.swap_in,
6868
swap_out: self.swap_out,
6969
major_faults: self.major_faults,

src/vmm/src/device_manager/persist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ mod tests {
540540

541541
// Add a balloon device.
542542
let balloon_cfg = BalloonDeviceConfig {
543-
amount_mb: 123,
543+
amount_mib: 123,
544544
deflate_on_oom: false,
545545
stats_polling_interval_s: 1,
546546
};

src/vmm/src/persist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ mod tests {
441441

442442
// Add a balloon device.
443443
let balloon_config = BalloonDeviceConfig {
444-
amount_mb: 0,
444+
amount_mib: 0,
445445
deflate_on_oom: false,
446446
stats_polling_interval_s: 0,
447447
};

0 commit comments

Comments
 (0)