GithubHelp home page GithubHelp logo

Bug: stoi bug about procfetch HOT 3 OPEN

potatochick2020 avatar potatochick2020 commented on June 3, 2024
Bug: stoi bug

from procfetch.

Comments (3)

TanmayPatil105 avatar TanmayPatil105 commented on June 3, 2024

Done!
Also the keep in mind the feature you add should work on other systems too.

from procfetch.

potatochick2020 avatar potatochick2020 commented on June 3, 2024

I had encountered the same issue in other parts of the code after fixing the located bug.

It is because we are using a different version of Ubuntu and therefore have other environment variables name.

The other problem there make this happened is I did not install any desktop environment which I am using ubuntu as Command line only.

Can I have your permission to wrap all the code with a try{} catch(){} function

making the following line as default output when cannot find argument
DE : No Desktop Environment Installed
CPU Temperature : cannot detect CPU temperature °C

There are another solution by using Linux command to find out information instead of finding the file path, but this required re-writing whole program, that's why I don't prefer doing this method

from procfetch.

TanmayPatil105 avatar TanmayPatil105 commented on June 3, 2024

Sure!
Rather than giving default values you can print only the properties which are available on the system.

from procfetch.

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.