unit tests, fix returned data

This commit is contained in:
Pieprzycki Piotr
2016-11-11 23:35:51 +01:00
parent 681797fc6d
commit 0518980ab8
42 changed files with 713 additions and 142 deletions

View File

@@ -0,0 +1 @@
{"fans": {"invalid": {"status": false}}, "memory": {"available_ram": 250112, "used_ram": 228668}, "temperature": {"invalid": {"is_alert": false, "temperature": 0.0, "is_critical": false}}, "power": {"invalid": {"status": true, "output": 0.0, "capacity": 0.0}}, "cpu": {"0": {"%usage": 1.0}}}

View File

@@ -0,0 +1,4 @@
total used free shared buffers cached
Mem: 250112 222708 27404 0 45144 93184
-/+ buffers/cache: 84380 165732
Swap: 0 0 0

View File

@@ -0,0 +1,3 @@
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 27460 45136 93184 0 0 0 0 15 24 0 0 99 0