addmomitor and swap#51
Conversation
stephane-segning
left a comment
There was a problem hiding this comment.
Good thing you know now how to use the psutil liib. Now, use it in a better way, and push something here again
There was a problem hiding this comment.
Haha yeah but no. Your code is working, isn't it? But now, see how I did the implementation for the CPU. First a service, then I import it in the app, the use it
There was a problem hiding this comment.
yes it is working very fine
There was a problem hiding this comment.
what i am to add in the code
There was a problem hiding this comment.
Analyse how the code for the CPU is done to inspire you
stephane-segning
left a comment
There was a problem hiding this comment.
Good work already. Now, try to copy the rest of the project to understand what you need to do
stephane-segning
left a comment
There was a problem hiding this comment.
Please update these too:
There was a problem hiding this comment.
Analyse how the code for the CPU is done to inspire you
| return jsonify(ram_usage_history=ram_usage, swap_usage_history=swap_usage) | ||
|
|
||
|
|
||
| ram_and_swap_usage |
There was a problem hiding this comment.
Why adding it here?
There was a problem hiding this comment.
becouse the ram and the swap are all in the memory
There was a problem hiding this comment.
Nope. This is not correct ode. Please fix
There was a problem hiding this comment.
This has nothing to do with this ticket
There was a problem hiding this comment.
okay sir but it was nice to search and you help me understand it thanks
@stephane-segning