Skip to content

Commit

Permalink
modify indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
angelovangel committed Feb 24, 2024
1 parent 9d7b7af commit d16c96e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use flate2::bufread;
use regex::{bytes::RegexSet, Regex};
//use std::io::Read;
use std::{fs, io, io::BufRead, io::BufReader, process};
use indicatif::ProgressBar;
use indicatif::{HumanCount, ProgressBar};
use std::time::Duration;

extern crate clap;
Expand Down Expand Up @@ -436,7 +436,8 @@ fn main() {
minlen = len.min(minlen);
maxlen = len.max(maxlen);
len_vector.push(len);
pb.set_message("Calculating...");
let message = format!("Processed reads: {}", HumanCount(reads as u64).to_string());
pb.set_message(message);

reader
.read(&mut record)
Expand Down

0 comments on commit d16c96e

Please sign in to comment.