+3
-2
src/lib/engine.ts
+3
-2
src/lib/engine.ts
···
68
didDoc = await resp.text()
69
} catch (e) {}
70
71
endpointRes.responses.push({
72
ok: !!didDoc,
73
did,
74
hash: didDoc ? await sha256(didDoc.trim()) : null,
75
-
responseTime: scannedUrls[url].timeToFetch,
76
})
77
-
endpointRes.totalTime += scannedUrls[url].timeToFetch
78
endpointRes.processed++
79
endpointRes.done = endpointRes.processed === endpointRes.count
80
···
68
didDoc = await resp.text()
69
} catch (e) {}
70
71
+
const responseTime = Math.round(scannedUrls[url].timeToFetch)
72
endpointRes.responses.push({
73
ok: !!didDoc,
74
did,
75
hash: didDoc ? await sha256(didDoc.trim()) : null,
76
+
responseTime,
77
})
78
+
endpointRes.totalTime += responseTime
79
endpointRes.processed++
80
endpointRes.done = endpointRes.processed === endpointRes.count
81