Commit Graph

28 Commits

Author SHA1 Message Date
Augusto Dwenger J. ecd40f940d
Merge pull request #6 from hamburghammer/develop
Change memory representation
2020-11-15 20:08:18 +01:00
Augusto Dwenger 7b1a54d697 Change usage representation of memory field
Changes apply to Disk and Mem. The show the state as an object.
This should improve the readablility.
2020-11-09 21:27:18 +01:00
Augusto Dwenger J. 8e32c292a5 Fix misspells 2020-10-20 16:44:59 +02:00
Augusto Dwenger 68eaf1d195 Implement date as command for the json output 2020-08-09 17:52:20 +02:00
Augusto Dwenger ceb197d60f Fix bug if the process list is > 10 2020-08-07 11:45:33 +02:00
Augusto Dwenger e1a70507ec Add test for command.Process testing the internals and externals 2020-08-07 11:45:33 +02:00
Augusto Dwenger 8ccd1e13ce Start replacing custom assert func with stretchr/testify
Add github.com/stretchr/testify with its dependencies.
2020-08-07 11:45:33 +02:00
Augusto Dwenger a72b4e2405 Refactor transforming Process to cpuProcess 2020-08-07 11:44:59 +02:00
Augusto Dwenger d536dce03c Add test file for internal function testing 2020-08-07 11:44:59 +02:00
Augusto Dwenger 57c1bca182 Extract the conversion to cpuProcess to own func 2020-08-07 11:44:59 +02:00
Augusto Dwenger 016a109bb0 Add comments to exported funcs and structs 2020-08-07 11:44:59 +02:00
Augusto Dwenger 2b57fd0b7a Implement process list 2020-08-07 11:44:52 +02:00
Augusto Dwenger b09fbbcfcd Cleanup naming and parameters 2020-06-30 16:36:51 +02:00
Augusto Dwenger 6162291d84 Refactor Mem to use DI to be more testable 2020-06-29 14:02:28 +02:00
Augusto Dwenger f41fca5f55 Refactor CPU to use DI to be more testable 2020-06-29 13:27:21 +02:00
Augusto Dwenger 172b69cc45 Implement disk space usage command 2020-06-29 12:12:11 +02:00
Augusto Dwenger c136a80cd4 Implement memory read 2020-06-14 16:01:45 +02:00
Augusto Dwenger 64afe95c39 Fix result bug if byte array is empty 2020-06-14 15:57:00 +02:00
Augusto Dwenger 0f37747e1d Refactor to make Result more testable and stable 2020-06-13 18:23:36 +02:00
Augusto Dwenger bf54bdce63 Remove the brackets from the cpu result 2020-05-31 16:52:47 +02:00
Augusto Dwenger c3328a5563 Remove debug log 2020-05-31 16:52:29 +02:00
Augusto Dwenger 69d24e94e7 Implement first attempt for a result collector 2020-05-31 16:33:24 +02:00
Augusto Dwenger ff47d0f881 Add args as parameter 2020-05-31 16:32:45 +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 72f8dc672a Add interface to execute commands 2020-05-30 20:14:08 +02:00
Augusto Dwenger 3b589f25fa Rename package proc to commands 2020-05-30 17:50:20 +02:00