penoud / apache-scalp

Automatically exported from code.google.com/p/apache-scalp
0 stars 0 forks source link

error while using --period #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
/usr/bin/python2.5/bin/python scalp-0.4.py --log 
/home/webserver/httpd/access_log -o output --html --period -p 
14/Nov/2011:06*;*/Nov/2011
2.
3.

What is the expected output? What do you see instead?
I get the below error:
Traceback (most recent call last):
  File "scalp-0.4.py", line 633, in <module>
    main(len(sys.argv), sys.argv)
  File "scalp-0.4.py", line 601, in main
    preferences['period'] = analyze_date(argv[i+1])
  File "scalp-0.4.py", line 508, in analyze_date
    l_end  = l_date[1].split('/')
IndexError: list index out of range

What version of the product are you using? On what operating system?
OS:GNU/Linux
scalp-0.4.py
python 2.5

Please provide any additional information below.
 All other options work, accept --period, am i doing something wrong here? or is there any changes required?

Original issue reported on code.google.com by viji4u...@gmail.com on 12 Jan 2012 at 9:47