Minor fixes
parent
8526491a7e
commit
0de8fa4291
|
@ -3,13 +3,13 @@ interval=1800 ### Log interval
|
||||||
logfile="" ### Define file to log the sizes
|
logfile="" ### Define file to log the sizes
|
||||||
|
|
||||||
if [[ $path = "" ]]; then
|
if [[ $path = "" ]]; then
|
||||||
echo "Open the script and enter the path to the map.sqlite file"
|
echo "ERROR: Open the script and enter the path to the map.sqlite file"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
getsize=$(du $path | grep -Eo "^[0-9]{1,}")
|
getsize=$(du $path | grep -Eo "^[0-9]{1,}")
|
||||||
echo "$(date) -> $(($getsize/1024)) MB" >> $file
|
echo "$(date) -> $(($getsize/1024)) MB" >> $logfile
|
||||||
sleep $interval
|
sleep $interval
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue