mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +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:
committed by
Sebastien Boeuf
parent
1004f870e1
commit
a6d86b9496
@@ -497,7 +497,7 @@ fn main() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
report_file
|
report_file
|
||||||
.write(
|
.write_all(
|
||||||
serde_json::to_string_pretty(&metrics_report)
|
serde_json::to_string_pretty(&metrics_report)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.as_bytes(),
|
.as_bytes(),
|
||||||
|
|||||||
Reference in New Issue
Block a user