[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #27039 [Metrics/Relay Search]: Relay Search graphs missing
#27039: Relay Search graphs missing
----------------------------------+--------------------------
Reporter: starlight | Owner: irl
Type: defect | Status: accepted
Priority: Medium | Milestone:
Component: Metrics/Relay Search | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
----------------------------------+--------------------------
Comment (by kat5):
Here's the script output:
kat@arbour:~/tor/relayops/tshirts$ ./tshirt.py
097CD81AB87D2F5DDB2538CF1221D978044F3323
Fetched bandwidth document
Fetched uptime document
Fetched details document
Traceback (most recent call last):
File "./tshirt.py", line 197, in <module>
check_tshirt(search_query)
File "./tshirt.py", line 183, in check_tshirt
uptime_percent = get_uptime_percent(uptime_data[i])
File "./tshirt.py", line 149, in get_uptime_percent
return round(calculate_2mo_avg(response, 'uptime') * 100, 2)
File "./tshirt.py", line 102, in calculate_2mo_avg
first = datetime.strptime(data['first'], "%Y-%m-%d %H:%M:%S")
TypeError: strptime() argument 1 must be string, not int
kat@arbour:~/tor/relayops/tshirts$
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27039#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs