Added some performance counters.

This commit is contained in:
2017-05-19 03:24:34 +01:00
parent 32b3256af9
commit faef050858
7 changed files with 246 additions and 6 deletions

View File

@@ -306,8 +306,13 @@ namespace osrepodbmgr.Core
#if DEBUG
stopwatch.Restart();
#endif
int counter = 0;
while(fResult.ResponseCode == VirusTotalNET.ResponseCodes.ReportResponseCode.StillQueued)
{
// Timeout...
if(counter == 10)
break;
// Wait 15 seconds so we fall in the 4 requests/minute
Thread.Sleep(15000);
@@ -315,6 +320,8 @@ namespace osrepodbmgr.Core
{
fResult = await vTotal.GetFileReport(file.Sha256);
}).Wait();
counter++;
}
#if DEBUG
stopwatch.Stop();