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
87
87
public long Timestamp { get ; internal set ; }
88
88
[ JsonProperty ( "load_average" ) ]
89
89
public float LoadAverage { get ; internal set ; }
90
+ [ JsonProperty ( "cpu_percent" ) ]
91
+ public int CpuPercent { get ; internal set ; }
90
92
91
93
[ JsonProperty ( "mem" ) ]
92
94
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)
99
99
100
100
os . Timestamp . Should ( ) . BeGreaterThan ( 0 ) ;
101
101
os . LoadAverage . Should ( ) . NotBe ( 0 ) ;
102
+ os . CpuPercent . Should ( ) . NotBe ( 0 ) ;
102
103
103
104
os . Memory . Should ( ) . NotBeNull ( ) ;
104
105
os . Memory . TotalInBytes . Should ( ) . BeGreaterThan ( 0 ) ;
You can’t perform that action at this time.
0 commit comments