Skip to content

Commit 981f53c

Browse files
committed
persist: update balloon related structs
Signed-off-by: George Pisaltu <[email protected]>
1 parent 34b96b6 commit 981f53c

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
@@ -541,7 +541,7 @@ mod tests {
541541

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

src/vmm/src/persist.rs

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

469469
// Add a balloon device.
470470
let balloon_config = BalloonDeviceConfig {
471-
amount_mb: 0,
471+
amount_mib: 0,
472472
deflate_on_oom: false,
473473
stats_polling_interval_s: 0,
474474
};

0 commit comments

Comments
 (0)