defaultnamehere / zzzzz

Roleplay as the NSA by making creepy graphs of your friends
MIT License
1.3k stars 131 forks source link

Reduce log size #35

Closed inDream closed 8 years ago

inDream commented 8 years ago

As offline/active status for LAT are fix. They can be replaced by shorter string.

Use this command to replace old logs:

for i in *.txt; do
  sed -i 's/{"lat": "offline", "webStatus": "invisible", "fbAppStatus": "invisible", "otherStatus": "invisible", "status": "invisible", "messengerStatus": "invisible"}/0/g' $i
  sed -i 's/{ "lat": "online", "webStatus": "invisible", "fbAppStatus": "invisible", "otherStatus": "invisible", "status": "active", "messengerStatus": "invisible"}/1/g' $i
done
defaultnamehere commented 8 years ago

It's true that this would reduce log size, but I think the clarity and completeness of data is worth the extra disk space.