Commit graph

8 commits

Author SHA1 Message Date
Augusto Dwenger J. f004c93773 refactor: implement single point for json marshal
This implementation still isn't perfect. One of the encoutered problems
is that it does not omit Memory sturcts that are technicly empty.
Resulting in JSON with empty objects. This should be a problem for other
parsers but it doesn't look good.
2021-01-02 18:10:16 +01:00
Augusto Dwenger b09fbbcfcd Cleanup naming and parameters 2020-06-30 16:36:51 +02:00
Augusto Dwenger f41fca5f55 Refactor CPU to use DI to be more testable 2020-06-29 13:27:21 +02:00
Augusto Dwenger c3328a5563 Remove debug log 2020-05-31 16:52:29 +02:00
Augusto Dwenger 7941a41d63 Add args checking befor exec for cpu flag 2020-05-31 16:31:18 +02:00
Augusto Dwenger 54737d7ffd Change cpu to hold the time conig in a struct
Whith this change the test can now run without having to wait
for the sleep of 500 MillSec. for the CPU load reading.
2020-05-30 21:41:48 +02:00
Augusto Dwenger 0984ee437d Implement Execute interface 2020-05-30 20:14:49 +02:00
Augusto Dwenger 3b589f25fa Rename package proc to commands 2020-05-30 17:50:20 +02:00
Renamed from proc/cpu.go (Browse further)