Giter Club home page Giter Club logo

pressure_watcher's Introduction

Useful Tool For Monitor CPU Stat

GetStarted

Step 1 clone this repo

git clone https://github.com/ooopSnake/pressure_watcher

Step 2 build

./build_all.sh

Step 3 execute

sudo ./pressure_watcher_arm

Result

 {
  "cpuInfo": [
    {
      "id": "cpu 0",
      "freq": "1.008 GHz",
      "usage": "21.6 %"
    },
    {
      "id": "cpu 1",
      "freq": "1.008 GHz",
      "usage": "21.1 %"
    },
    {
      "id": "cpu 2",
      "freq": "1.008 GHz",
      "usage": "25.5 %"
    },
    {
      "id": "cpu 3",
      "freq": "1.008 GHz",
      "usage": "23.5 %"
    }
  ],
  "cpuTemp": "39.9 °C"
}

CommandFlags

Usage of ./pressure_watcher:
  -addr string
    	http addr , eg : 127.0.0.1 (default "0.0.0.0")
  -nohttp
    	disable http server
  -port string
    	http listen port , eg : 8080 (default "12345")

License

WTFPL

pressure_watcher's People

Contributors

ooopsnake avatar

Watchers

 avatar  avatar

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.