mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 13:57:54 +00:00
Clean up some log levels in CpuStatService
This commit is contained in:
parent
0b41b4f6b8
commit
ffa6faddd2
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ namespace PluralKit.Bot
|
|||
// We get the current processor time, wait 5 seconds, then compare
|
||||
// https://medium.com/@jackwild/getting-cpu-usage-in-net-core-7ef825831b8b
|
||||
|
||||
_logger.Information("Estimating CPU usage...");
|
||||
_logger.Debug("Estimating CPU usage...");
|
||||
var stopwatch = new Stopwatch();
|
||||
|
||||
stopwatch.Start();
|
||||
|
|
@ -39,7 +39,7 @@ namespace PluralKit.Bot
|
|||
var timePassed = stopwatch.Elapsed;
|
||||
|
||||
var percent = cpuTimePassed / timePassed;
|
||||
_logger.Information("CPU usage measured as {Percent:P}", percent);
|
||||
_logger.Debug("CPU usage measured as {Percent:P}", percent);
|
||||
LastCpuMeasure = percent;
|
||||
return percent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue