diff --git a/RasPi-Config/monitor.service b/RasPi-Config/monitor.service index 80a452c..71f7401 100644 --- a/RasPi-Config/monitor.service +++ b/RasPi-Config/monitor.service @@ -101,7 +101,7 @@ fi # Variables # ##-------------## -IP=`hostname -I` +IP=`hostname -I` && IP=$(echo $IP | cut -d ' ' -f 1) DATE=`date "+%d-%m-%y %H:%M"` CPUstat=`(top -bn1 | awk '/Cpu/ { print $2"%"}')` MEMstat=`(free -m | awk '/Mem/{print $3"MB"}')`