update now-incorrect comments

master
Michael F. Lamb 2015-10-20 22:27:43 +00:00
parent 5ce87c9aff
commit f5f27d699c
1 changed files with 0 additions and 12 deletions

View File

@ -49,24 +49,12 @@ stats.py, which is of the form:
Usage: stats.py > /var/www/html/tilde.json Usage: stats.py > /var/www/html/tilde.json
""" """
# I suppose I could import /var/local/tildetown/tildetown-py/stats.py which
# does much of the same work, but I wanted to try to make one that needs no
# venv nor 'sh' module. (Success.) Bonus: this runs in 0.127s, vs 5.2s
# for 'stats'
# FIXME: we output quite a bit of redundant data. I think we should lose
# 'live_users' and do that filtering on the client side.
# FIXME: If we're the only consumer of the stats.py data, let's change the
# client side to use 'users' and drop 'all_users'.
import datetime import datetime
import hashlib import hashlib
import json import json
import os import os
import pwd import pwd
import re import re
import struct
import subprocess import subprocess
SYSTEM_USERS = ['wiki', 'root', 'ubuntu', 'nate', 'nobody'] SYSTEM_USERS = ['wiki', 'root', 'ubuntu', 'nate', 'nobody']