mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Added some performance counters.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user