summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-02-29 12:54:29 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-02-29 19:29:48 +0100
commitb729a49dd488c2002c90b443b34ef973c0ac26f1 (patch)
treeeac4243a3038fed380a603fd87a85feff75f4ba6
parentef9cb6d4e718546afcffa90540a9c4ffafc12569 (diff)
downloadimag-b729a49dd488c2002c90b443b34ef973c0ac26f1.tar.gz
imag-b729a49dd488c2002c90b443b34ef973c0ac26f1.tar.xz
-rw-r--r--bin/core/imag-diagnostics/src/lib.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/bin/core/imag-diagnostics/src/lib.rs b/bin/core/imag-diagnostics/src/lib.rs
index 49906b28..1b3ec62b 100644
--- a/bin/core/imag-diagnostics/src/lib.rs
+++ b/bin/core/imag-diagnostics/src/lib.rs
@@ -199,34 +199,34 @@ impl ImagApplication for ImagDiagnostics {
let mut out = rt.stdout();
- write!(out, "imag version {}", { env!("CARGO_PKG_VERSION") })?;
- write!(out, "")?;
- write!(out, "{} entries", n)?;
+ writeln!(out, "imag version {}", { env!("CARGO_PKG_VERSION") })?;
+ writeln!(out)?;
+ writeln!(out, "{} entries", n)?;
for (k, v) in version_counts {
- write!(out, "{} entries with store version '{}'", v, k)?;
+ writeln!(out, "{} entries with store version '{}'", v, k)?;
}
if n != 0 {
- write!(out, "{} header sections in the average entry", sum_header_sections / n)?;
- write!(out, "{} average content bytecount", sum_bytecount_content / n)?;
- write!(out, "{} average overall bytecount", sum_overall_byte_size / n)?;
+ writeln!(out, "{} header sections in the average entry", sum_header_sections / n)?;
+ writeln!(out, "{} average content bytecount", sum_bytecount_content / n)?;
+ writeln!(out, "{} average overall bytecount", sum_overall_byte_size / n)?;
if let Some((num, path)) = max_overall_byte_size {
- write!(out, "Largest Entry ({} bytes): {}", num, path.local_display_string())?;
+ writeln!(out, "Largest Entry ({} bytes): {}", num, path.local_display_string())?;
}
- write!(out, "{} average internal link count per entry", num_links / n)?;
+ writeln!(out, "{} average internal link count per entry", num_links / n)?;
if let Some((num, path)) = max_links {
- write!(out, "Entry with most internal links ({}): {}",
+ writeln!(out, "Entry with most internal links ({}): {}",
num,
path.local_display_string())?;
}
- write!(out, "{} verified entries", verified_count)?;
- write!(out, "{} unverified entries", unverified_count)?;
+ writeln!(out, "{} verified entries", verified_count)?;
+ writeln!(out, "{} unverified entries", unverified_count)?;
if verbose {
for unve in unverified_entries.iter() {
- write!(out, "Unverified: {}", unve)?;
+ writeln!(out, "Unverified: {}", unve)?;
}
}
}