Commit 3e5b9c45 authored by Andreas Jung's avatar Andreas Jung

changed --today option to use localtime() instead of gmtime()

(BigM logs are written using localtime())
parent cd5beeb1
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
""" Request log profiler script """ """ Request log profiler script """
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[11:-2]
import string, sys, time, getopt, tempfile, math, cPickle import string, sys, time, getopt, tempfile, math, cPickle
...@@ -741,7 +741,7 @@ if __name__ == '__main__': ...@@ -741,7 +741,7 @@ if __name__ == '__main__':
if opt=='--resolution': if opt=='--resolution':
resolution=int(val) resolution=int(val)
if opt=='--today': if opt=='--today':
now = time.gmtime(time.time()) now = time.localtime(time.time())
# for testing - now = (2001, 04, 19, 0, 0, 0, 0, 0, -1) # for testing - now = (2001, 04, 19, 0, 0, 0, 0, 0, -1)
start = list(now) start = list(now)
start[3] = start[4] = start[5] = 0 start[3] = start[4] = start[5] = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment