mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-21 19:02:30 +00:00
performance-metrics: Use Write::write_all() for report
Write::write() is not guaranteed to write all the contents. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
1004f870e1
commit
a6d86b9496
@ -497,7 +497,7 @@ fn main() {
|
||||
};
|
||||
|
||||
report_file
|
||||
.write(
|
||||
.write_all(
|
||||
serde_json::to_string_pretty(&metrics_report)
|
||||
.unwrap()
|
||||
.as_bytes(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user