File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ public class OperatingSystemStats
8787 public long Timestamp { get ; internal set ; }
8888 [ JsonProperty ( "load_average" ) ]
8989 public float LoadAverage { get ; internal set ; }
90+ [ JsonProperty ( "cpu_percent" ) ]
91+ public int CpuPercent { get ; internal set ; }
9092
9193 [ JsonProperty ( "mem" ) ]
9294 public ExtendedMemoryStats Memory { get ; internal set ; }
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ protected void Assert(OperatingSystemStats os)
9999
100100 os . Timestamp . Should ( ) . BeGreaterThan ( 0 ) ;
101101 os . LoadAverage . Should ( ) . NotBe ( 0 ) ;
102+ os . CpuPercent . Should ( ) . NotBe ( 0 ) ;
102103
103104 os . Memory . Should ( ) . NotBeNull ( ) ;
104105 os . Memory . TotalInBytes . Should ( ) . BeGreaterThan ( 0 ) ;
You can’t perform that action at this time.
0 commit comments