tdulcet / system-usage-information Goto Github PK
View Code? Open in Web Editor NEW๐ Linux System Usage Information Script
License: GNU General Public License v3.0
๐ Linux System Usage Information Script
License: GNU General Public License v3.0
Many systems report cpu usage as 100% on the first result when using your method for calculating cpu usage.
The typical workaround for this is to read the cpu stats twice.
I added another CPU_USAGE=$(cpuusage)
(line 574) directly following the first CPU_USAGE=$(cpuusage)
and the issue has been resolved.
Hello, I run this script and got this output:
nico@NH-Asus:~/Downloads$ bash usage.sh
System usage information as of Mo 24. Aug 07:32:37 CEST 2020
usage.sh: line 560: printf: 1130.216: invalid number
Processor (CPU) usage: [ 1,0% 1.130 MHz]
CPU Cores/Threads: 4/4
CPU Thread usage:
usage.sh: line 576: printf: 1091.957: invalid number
usage.sh: line 576: printf: 1020.088: invalid number
usage.sh: line 576: printf: 1033.918: invalid number
usage.sh: line 576: printf: 1130.216: invalid number
1: [ 1,0% 1.091 MHz] 2: [ 1,0% 1.020 MHz] 3: [ 2,0% 1.033 MHz] 4: [ 2,0% 1.130 MHz]
Load average (1, 5, 15 minutes):0.70, 0.84, 0.39
Pressure Stall (PSI) average (10 seconds, 1, 5 minutes)
[....]
My system:
nico@NH-Asus:~/Downloads$ bash info.sh
Linux Distribution: Ubuntu 20.04.1 LTS (Kubuntu)
Linux Kernel: 5.4.0-42-generic
Computer Model: ASUSTeK COMPUTER INC. VivoBook_ASUS Laptop E406MAS_R420MA 1.0
Processor (CPU): Intel(R) Pentium(R) Silver N5000 CPU @ 1.10GHz
CPU Cores/Threads: 4/4
Architecture: x86_64 (64-bit)
Total memory (RAM): 3.758 MiB (3,7GiB) (3.941 MB (4,0GB))
Total swap space: 2.047 MiB (2,0GiB) (2.147 MB (2,2GB))
Disk space: mmcblk0: 59.640 MiB (59GiB) (62.537 MB (63GB))
mmcblk0boot0: 4 MiB (4 MB)
mmcblk0boot1: 4 MiB (4 MB)
Time zone: Europe/Berlin (CEST, +0200)
Language: en_US.UTF-8
Bash Version: 5.0.17(1)-release
Terminal: xterm-256color
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.