Browse Source

修复重复计量的bug

pjzs_starttask_update
shanji 1 year ago
parent
commit
73108c90d8
  1. 2
      BBWY.Server.Business/PlatformSDK/APIExecutionTimesRecorder.cs

2
BBWY.Server.Business/PlatformSDK/APIExecutionTimesRecorder.cs

@ -28,7 +28,7 @@ namespace BBWY.Server.Business
public void Flush() public void Flush()
{ {
var currentRoundList = apiDictionary.Select(kv => new { Api = kv.Key, Count = kv.Value }); var currentRoundList = apiDictionary.Select(kv => new { Api = kv.Key, Count = kv.Value }).ToList();
apiDictionary.Clear(); apiDictionary.Clear();
var currentRoundKeyList = currentRoundList.Select(x => x.Api).ToList(); var currentRoundKeyList = currentRoundList.Select(x => x.Api).ToList();
var today = DateTime.Now.Date; var today = DateTime.Now.Date;

Loading…
Cancel
Save