Closed panzerox123 closed 3 years ago
@panzerox123 Well that was fast xD
@panzerox123 Well that was fast xD
Yeah lol I only asked to be assigned once I figured it out xD
Thanks for the reviews guys! I'll make the necessary changes and push another commit tomorrow!
Would it be okay if I just passed a pointer to c
from UpdateCPULoad
, instead of creating a new type which will mostly consist of the same data?
Would it be okay if I just passed a pointer to
c
fromUpdateCPULoad
, instead of creating a new type which will mostly consist of the same data?
Yep this is good!
A few more suggestions coming your way @panzerox123!
@panzerox123 Before along with your next commit, do run go mod tidy
once. It should remove the unnecessary dependencies and I'm hoping it fixes the failing checks at the go get
step :P
@panzerox123 Before along with your next commit, do run
go mod tidy
once. It should remove the unnecessary dependencies and I'm hoping it fixes the failing checks at thego get
step :P
Cool! And should I include the go.mod and go.sum files as well in the next commit?
Cool! And should I include the go.mod and go.sum files as well in the next commit?
Yep! They aren't git ignored or anything, so make sure to push them.
Also if you want to play around with the benchmark:
# run the benchmark
go test -bench=. -benchtime=100000x -benchmem
Yeah let me try these out!
Looks like the go get
error seems to be fixed as well
Will merge after addition of comments.
@panzerox123 @MadhavJivrajani sorry for the weird branch updates. Since CI builds weren't triggering particularly for this PR (for some unknown/weird reason), I tried setting them up through actions. :P
@Gituser143 build is stuck again 🤣
I'm gonna merge this considering the previous commit passed all tests and the build was successful and this commit is just addition of comments.
Description
Fixes #97
Read
/proc/stat
to obtain CPU load information instead of relying onmpstat
. No more dependency related errors on systems that don't havempstat
installed by default.Updated CONTRIBUTING.MD to say
main
instead ofmaster
branch.Let me know if there are any changes you would like :D
Type of change
Please delete options that are not relevant.
Checklist:
go fmt
on my code (reference)