add cygpath support for volume src too

This commit is contained in:
ed 2021-06-12 01:55:45 +02:00
parent 88ce008e16
commit ca27f8587c
3 changed files with 8 additions and 3 deletions

View file

@ -44,14 +44,15 @@ class Cpp(object):
def await_idle(self, ub, timeout):
req = ["scanning</td><td>False", "hash-q</td><td>0", "tag-q</td><td>0"]
lim = int(timeout * 10)
u = ub + "?h"
for _ in range(timeout * 10):
for n in range(lim):
try:
time.sleep(0.1)
r = requests.get(u, timeout=0.1)
for x in req:
if x not in r.text:
print("ST: miss " + x)
print("ST: {}/{} miss {}".format(n, lim, x))
raise Exception()
print("ST: idle")
return