misc: cleanup
This commit is contained in:
parent
d8f7e8df54
commit
e95776d40b
6
neofetch
6
neofetch
|
@ -1774,10 +1774,8 @@ get_cpu() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get CPU temp.
|
# Get CPU temp.
|
||||||
if [[ -f "$temp_dir" ]]; then
|
[[ -f "$temp_dir" ]] && \
|
||||||
deg="$(< "$temp_dir")"
|
deg="$(($(< "$temp_dir") * 100 / 10000))"
|
||||||
deg="$((deg * 100 / 10000))"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get CPU cores.
|
# Get CPU cores.
|
||||||
case "$cpu_cores" in
|
case "$cpu_cores" in
|
||||||
|
|
Reference in New Issue