Skip to content

Commit 48dbb95

Browse files
committedDec 21, 2023
Fixed the issue of decimal places in stat.rs
1 parent dcbc5e8 commit 48dbb95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/stats.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub fn stat_fq(
164164
stat.calc();
165165

166166
// output summary result
167-
writeln!(&mut fo, "read average length:\t{}", stat.ave_len)?;
167+
writeln!(&mut fo, "read average length:\t{:.0}", stat.ave_len)?;
168168
writeln!(&mut fo, "read min length:\t{}", stat.min_len)?;
169169
writeln!(&mut fo, "read max length:\t{}", stat.max_len)?;
170170
writeln!(&mut fo, "total gc content(%):\t{:.2}", stat.rate_gc * 100.0)?;

0 commit comments

Comments
 (0)
Please sign in to comment.