Browse Source

update source

master
trackingv2 1 month ago
parent
commit
61fc851da2
  1. 6
      plotter2.py
  2. 2
      trackingv2.py

6
plotter2.py

@ -13,8 +13,10 @@ with open("/home/trackingv2/trackingv2.csv", "r") as f:
writer = csv.writer(write)
writer.writerow(["fraction_nonv2", "datetime"])
for row in reader:
per = int(row[1]) / int(row[2])
per = round(per, 4)
per = 0
if row[1] != "0" and row[2] != "0":
per = int(row[1]) / int(row[2])
per = round(per, 4)
writer.writerow([per, row[3]])
x_axis='datetime'

2
trackingv2.py

@ -31,7 +31,7 @@ while True:
if re.search("^s.*HSDir", line1, re.IGNORECASE):
line2 = file.readline()
numberOfHSDir += 1
if re.search("^v.*Tor 0.4.[6-9]", line2, re.IGNORECASE):
if re.search("^v.*Tor (0.4.[6-9]|0.3.5.17|0.4.5.11)", line2, re.IGNORECASE):
numberOfNonv2 += 1
else:
numberOfv2 += 1

Loading…
Cancel
Save