Skip to content

Commit

Permalink
fix(progress): extraction should be based on node count (minus root n…
Browse files Browse the repository at this point in the history
…ode)
  • Loading branch information
zkat committed Feb 26, 2023
1 parent 4e835be commit 088da29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/node-maintainer/src/maintainer.rs
Expand Up @@ -208,7 +208,7 @@ impl NodeMaintainer {
pub async fn extract_to(&self, path: impl AsRef<Path>) -> Result<(), NodeMaintainerError> {
#[cfg(not(target_arch = "wasm32"))]
let pb = if self.progress_bar {
ProgressBar::new(self.graph.inner.edge_count() as u64).with_style(
ProgressBar::new(self.graph.inner.node_count() as u64 - 1).with_style(
ProgressStyle::default_bar()
.template("💾 {bar:40} [{pos}/{len}] {wide_msg:.dim}")
.unwrap(),
Expand Down

0 comments on commit 088da29

Please sign in to comment.