diff options
| author | Josef Gustafsson <josef.gson@gmail.com> | 2015-09-21 12:11:30 +0200 |
|---|---|---|
| committer | Josef Gustafsson <josef.gson@gmail.com> | 2015-09-21 12:11:30 +0200 |
| commit | 4f3be5f797b16519c69fa2e34f999941bd6ce821 (patch) | |
| tree | 4d1d1b43c3a2ebb912652bc2c5b81824017abd0e /monitor/josef_logreader.py | |
| parent | 59f065ab412f5777017854ef9b6d41d3d3449e52 (diff) | |
adding program for moving entries between logs
Diffstat (limited to 'monitor/josef_logreader.py')
| -rwxr-xr-x | monitor/josef_logreader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/josef_logreader.py b/monitor/josef_logreader.py index 8be4dd5..d261fd4 100755 --- a/monitor/josef_logreader.py +++ b/monitor/josef_logreader.py @@ -41,7 +41,7 @@ def print_log_stats(l): # break if line[:len(NEW_STH_STR)] == NEW_STH_STR: timestamp = datetime.datetime.strptime(line[-20:-1], '%Y-%m-%d %H:%M:%S') - age = datetime.datetime.now() - timestamp + age = datetime.datetime.utcnow() - timestamp size = line.split("Size: ")[1].split(",")[0] # print line[:-1] print "STH age: " + str(age)[:-7] |
