Skip to content

Commit 1980502

Browse files
committed
change cpu cmd
1 parent a7003ea commit 1980502

7 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ clean {
133133
task downloadBootstraps(){
134134
doLast {
135135
def version = 20
136-
downloadBootstrap("aarch64", "16ee74ec8ec3088f9661d2564f7105872ae6c2e220526e7271ca521817bd52b1", version)
137-
downloadBootstrap("arm", "96a87df71b0744090c0e299308c47d82cc8c6712cd6723439bd0cc7ac43d5d0b", version)
138-
downloadBootstrap("i686", "e0bacae6fd6800bb3769f7bbd629bc4c978a974d895e83095d13c2a54b4a2169", version)
139-
downloadBootstrap("x86_64", "6e35481a08290598c46668f5b718a27d4b3164277984e185b8fd28bb4c9e02", version)
136+
downloadBootstrap("aarch64", "e7aa7b6b89b63a3179e6f10a40c6404cf938a2c7d5319d5508409ca6ab02fbe4", version)
137+
downloadBootstrap("arm", "f496ee609a531cffaabeb1fba6bade24772a49e8788132f93ec86e744a653a09", version)
138+
downloadBootstrap("i686", "582450e9b32ccfa40f155866bba4fe6d983c94af1b942a48318ce784c4ed29b2", version)
139+
downloadBootstrap("x86_64", "dce9ebce012388c0b56f494abeaec57e3feb41e81ff39f38b47436f72b5063c0", version)
140140
}
141141
}
142142

bootstrap/bootstrap-aarch64.zip

19 Bytes
Binary file not shown.

bootstrap/bootstrap-arm.zip

19 Bytes
Binary file not shown.

bootstrap/bootstrap-i686.zip

19 Bytes
Binary file not shown.

bootstrap/bootstrap-x86_64.zip

19 Bytes
Binary file not shown.

bootstrap/changes.zip

19 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/data/data/com.termux/files/usr/bin/bash
22
pretext=" CPU: " #text before the cpu string
33
posttext="" #text after the cpu string
4-
cpu=$(mpstat | awk '$12 ~ /[0-9.]+/ { print 100 - $12"%%" }')
4+
cpu=$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}')
55

66
printf "%s %s %s" "${pretext}" "${cpu}" "${posttext}"

0 commit comments

Comments
 (0)