GithubHelp home page GithubHelp logo

Comments (9)

djc avatar djc commented on July 17, 2024 2

All of this code looks pretty shitty and would like to use indicatif instead (#1835), but that'll have to wait for another day.

from rustup.

rami3l avatar rami3l commented on July 17, 2024

Suggestion: we should stick to the old format:

format!(
"{} / {} ({:3.0} %) {} in {} ETA: {}",
total_h,
content_len_h,
percent,
speed_h,
elapsed_h.display(),
eta_h.display(),
)

... which means there should be an ETA: {} somewhere.

My suggestion write!(f, " ETA: {}", self.0.display()), in #3827 (comment) should do exactly this.

from rustup.

djc avatar djc commented on July 17, 2024

Why should we stick to the old format? I agree with #3826 that showing it after finishing is pointless.

from rustup.

rami3l avatar rami3l commented on July 17, 2024

Why should we stick to the old format? I agree with #3826 that showing it after finishing is pointless.

@djc Sorry, I meant stick to the old format when downloading. The expected result should be something like in 1s ETA: Unknown.

from rustup.

rami3l avatar rami3l commented on July 17, 2024

For example if ETA is 3s, the current version will print in 1s3s, which is clearly not ideal.

from rustup.

djc avatar djc commented on July 17, 2024

Ahh, no, I only applied half of your suggestion -- sorry, was too hasty; fix in #3829.

I was confused for a while by your screenshot showing "Unknown", but that seems unrelated.

from rustup.

rami3l avatar rami3l commented on July 17, 2024

Ahh, no, I only applied half of your suggestion -- sorry, was too hasty; fix in #3829.

I was confused for a while by your screenshot showing "Unknown", but that seems unrelated.

@djc Sorry, that Unknown is caused by a division-by-zero I believe. I probably won't be able to make a better screenshot: it all goes too fast on my machine :]

from rustup.

rami3l avatar rami3l commented on July 17, 2024

All of this code looks pretty shitty and would like to use indicatif instead (#1835), but that'll have to wait for another day.

@djc I'm also in favor of using the console suite (incl. dialoguer and indicatif). In #3803 however I tried my best not to introduce new dependencies 😅

from rustup.

djc avatar djc commented on July 17, 2024

Yeah, one step at a time. async -> tracing -> indicatif.

from rustup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.