Giter Club home page Giter Club logo

Comments (10)

DoctorCr4nk avatar DoctorCr4nk commented on August 23, 2024

I think its because you 'cut' the df result, but different amounts of empty space make it behave abnormal.
You can somehow seperate the output not by spaces but "empty space between words" I dont know how tho.

from shc.

junglert avatar junglert commented on August 23, 2024

I am looking into that matter!

from shc.

junglert avatar junglert commented on August 23, 2024

Disk Usage | GB of GB is resolved

from shc.

junglert avatar junglert commented on August 23, 2024

df -h --output="size,used,pcent" / | cut -d'U' -f2 | tail -1 | cut -d'G' -f2

from shc.

junglert avatar junglert commented on August 23, 2024

About the CPU temperature.

SUSE got really messy again in Leap 15.2 and changed a lot of things again

ls -l /sys/class/thermal/

total 0

lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device0 -> ../../devices/virtual/thermal/cooling_device0
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device1 -> ../../devices/virtual/thermal/cooling_device1
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device10 -> ../../devices/virtual/thermal/cooling_device10
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device11 -> ../../devices/virtual/thermal/cooling_device11
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device12 -> ../../devices/virtual/thermal/cooling_device12
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device13 -> ../../devices/virtual/thermal/cooling_device13
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device14 -> ../../devices/virtual/thermal/cooling_device14
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device15 -> ../../devices/virtual/thermal/cooling_device15
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device2 -> ../../devices/virtual/thermal/cooling_device2
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device3 -> ../../devices/virtual/thermal/cooling_device3
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device4 -> ../../devices/virtual/thermal/cooling_device4
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device5 -> ../../devices/virtual/thermal/cooling_device5
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device6 -> ../../devices/virtual/thermal/cooling_device6
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device7 -> ../../devices/virtual/thermal/cooling_device7
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device8 -> ../../devices/virtual/thermal/cooling_device8
lrwxrwxrwx 1 root root 0 Sep  2  2020 cooling_device9 -> ../../devices/virtual/thermal/cooling_device9

Those links are looping for ever and ever.

Cant resolve this problem until SUSE fixes that!

from shc.

junglert avatar junglert commented on August 23, 2024

On another Leap 15.2 the output is the following

echo $(( $(cat /sys/class/thermal/thermal_zone6/temp) /1000))
57

The CPU is an Intel Core I7 8550U

from shc.

junglert avatar junglert commented on August 23, 2024

Problem fixed
Changed the thermal_zone6 to 0 because every CPU has a core labeled 0.

echo $(( $(cat /sys/class/thermal/thermal_zone0/temp) /1000))

from shc.

DoctorCr4nk avatar DoctorCr4nk commented on August 23, 2024

It is not fixed

from shc.

junglert avatar junglert commented on August 23, 2024

Working on a new script for the temps

from shc.

junglert avatar junglert commented on August 23, 2024

temperature is not fixed by beaa566

from shc.

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.