mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-07 23:58:51 +00:00
fix date
This commit is contained in:
parent
2a4fe20b88
commit
d2e54d5cf0
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ if [ -f "$myFILE" ];
|
|||
then
|
||||
myNOW=$(date +%s)
|
||||
myOLD=$(date +%s -r "$myFILE")
|
||||
myDAYS=$(( (now-old) / (60*60*24) ))
|
||||
myDAYS=$(( ($myNOW-$myOLD) / (60*60*24) ))
|
||||
echo "### Downloaded $myFILE list is $myDAYS days old."
|
||||
myBLACKHOLE_IPS=$(grep -o -P "\b(?:\d{1,3}\.){3}\d{1,3}\b" "$myFILE" | sort -u)
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue