Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
# version - ArticMonkey:19.03.24:1743
|
2 |
|
|
|
3 |
|
4 |
import numpy as np
|
5 |
|
@@ -23,4 +24,8 @@ def main():
|
|
23 |
print("error")
|
24 |
|
25 |
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
26 |
main()
|
|
|
1 |
# version - ArticMonkey:19.03.24:1743
|
2 |
|
3 |
+
import psutil
|
4 |
|
5 |
import numpy as np
|
6 |
|
|
|
24 |
print("error")
|
25 |
|
26 |
if __name__ == "__main__":
|
27 |
+
# Getting % usage of virtual_memory ( 3rd field)
|
28 |
+
print('RAM memory % used:', psutil.virtual_memory()[2])
|
29 |
+
# Getting usage of virtual_memory in GB ( 4th field)
|
30 |
+
print('RAM Used (GB):', psutil.virtual_memory()[3]/1000000000)
|
31 |
main()
|