Compare commits
No commits in common. "6c07c8b175c529ec90dfc1c2b47dcbb46b1237f3" and "5af012495bee66c4493708ef541b12c20f1d3fa1" have entirely different histories.
6c07c8b175
...
5af012495b
@ -74,12 +74,15 @@ pkgmgr_update(){
|
|||||||
|
|
||||||
get_system_used_space() {
|
get_system_used_space() {
|
||||||
usedspace=$(df --output=used -B1 / | tail -n 1| cut -d'%' -f1)
|
usedspace=$(df --output=used -B1 / | tail -n 1| cut -d'%' -f1)
|
||||||
|
printf "$COL_RED" "$usedspace"
|
||||||
|
echo $usedspace
|
||||||
}
|
}
|
||||||
|
|
||||||
human_readable_bytes() {
|
human_readable_bytes() {
|
||||||
spacekb=`expr $1 / 1024`
|
local spacebytes="$1"
|
||||||
spacemb=`expr $1 / 1024 / 1024`
|
spacekb=`expr $spacebytes / 1024`
|
||||||
spacegb=`expr $1 / 1024 / 1024 / 1024`
|
spacemb=`expr $spacebytes / 1024 / 1024`
|
||||||
|
spacegb=`expr $spacebytes / 1024 / 1024 / 1024`
|
||||||
|
|
||||||
if [[ "$spacegb" -gt 0 ]]
|
if [[ "$spacegb" -gt 0 ]]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user