负载由百分比改为万分比,平均负载42/10000

This commit is contained in:
大石头X2 2016-12-29 00:03:09 +08:00
parent a6f14651b4
commit 86fbdef4bd
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ void TaskScheduler::ShowStatus()
auto now = Sys.Ms();
debug_printf("Task::ShowStatus [%d]", host->Times);
debug_printf(" 负载 %d/100", 100 - (int)(TotalSleep * 100 / now));
debug_printf(" 负载 %d/10000", 10000 - (int)(TotalSleep * 10000 / now));
debug_printf(" 平均 %dus 最大 %dus 当前 ", host->Cost, host->MaxCost);
DateTime::Now().Show();
debug_printf(" 启动 ");