mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-06 07:04:03 +00:00
Nove formatting bloc down
This commit is contained in:
14
neofetch
14
neofetch
@@ -992,17 +992,17 @@ getcpu () {
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix for speeds under 1ghz
|
|
||||||
if [ -z "${speed:1}" ]; then
|
|
||||||
speed="0.${speed}"
|
|
||||||
else
|
|
||||||
speed=${speed:0:1}.${speed:1}
|
|
||||||
fi
|
|
||||||
|
|
||||||
cores=$(awk -F ': ' '/siblings/ {printf $2; exit}' /proc/cpuinfo)
|
cores=$(awk -F ': ' '/siblings/ {printf $2; exit}' /proc/cpuinfo)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Fix for speeds under 1ghz
|
||||||
|
if [ -z "${speed:1}" ]; then
|
||||||
|
speed="0.${speed}"
|
||||||
|
else
|
||||||
|
speed=${speed:0:1}.${speed:1}
|
||||||
|
fi
|
||||||
|
|
||||||
cpu="$cpu @ ${speed}GHz"
|
cpu="$cpu @ ${speed}GHz"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user