()
| 125 | |
| 126 | |
| 127 | def get_ram_details(): |
| 128 | try: |
| 129 | ram_info = psutil.virtual_memory() |
| 130 | return { |
| 131 | "Total": f"{ram_info.total / (1024**3):.2f} GB", |
| 132 | "Available": f"{ram_info.available / (1024**3):.2f} GB", |
| 133 | "Used": f"{ram_info.used / (1024**3):.2f} GB", |
| 134 | "Percentage": f"{ram_info.percent}%", |
| 135 | } |
| 136 | except: |
| 137 | return {} |
| 138 | |
| 139 | |
| 140 | def get_disk_details(): |
no outgoing calls
no test coverage detected
searching dependent graphs…