cpu_name added
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def get_cgroupv2_memory_limit():
|
|
| 68 |
|
| 69 |
@app.get("/")
|
| 70 |
def greet_json():
|
| 71 |
-
return {"Hello": "World!", "cpu_count": get_cgroupv2_cpu_limit(), "total_ram_in_MB": get_cgroupv2_memory_limit()}
|
| 72 |
|
| 73 |
@app.get("/health")
|
| 74 |
def health():
|
|
|
|
| 68 |
|
| 69 |
@app.get("/")
|
| 70 |
def greet_json():
|
| 71 |
+
return {"Hello": "World!", "cpu_count": get_cgroupv2_cpu_limit(), "total_ram_in_MB": get_cgroupv2_memory_limit(), "cpu_name":cpuinfo.get_cpu_info()['brand_raw']}
|
| 72 |
|
| 73 |
@app.get("/health")
|
| 74 |
def health():
|