This commit is contained in:
2020-06-03 21:24:38 +00:00
parent 8036128186
commit b9cfcd2393
3 changed files with 22 additions and 69 deletions

View File

@@ -81,10 +81,15 @@ namespace AyaNova.Biz
var Gen2 = GC.CollectionCount(2);//integer
//NOTE: CPU percentage is *our* process cpu percentage over timeframe of last captured avg
//So it does *not* show the entire server cpu load, only for RAVEN, server stats
//need to be captured / viewed independently (digital ocean control panel for example or windows task manager)
//So it does *not* show the entire server cpu load, only for RAVEN.
//Overall, server stats need to be captured / viewed independently (digital ocean control panel for example or windows task manager)
var CPU = _cpu;// double precision
//System.Diagnostics.Debug.WriteLine($"MM Snapshot, cpu: {CPU}");
//In some cases the first snapshot taken after a reboot
//is a huge number way beyond 100 which fucks up the charts
//likely due to the algorithm above and new values but not worth looking into atm
if(CPU > 100){
CPU=0;
}
using (AyContext ct = ServiceProviderProvider.DBContext)
{
//write to db