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