Skip to content

nvtop -s is returning invalid json after i did an update #444

@Amaan1234567

Description

@Amaan1234567

As you can see below there are ',' missing in the last couple of key value pairs, i use this to get the gpu data to show in my gpu widget, but after updating i am seeing that its failing due to json parse errors.

nvtop -s
[
  {
   "device_name": "NVIDIA GeForce GTX 1650 Ti",
   "gpu_clock": "990MHz",
   "mem_clock": "6000MHz",
   "temp": "50C",
   "fan_speed": null,
   "power_draw": "12W",
   "gpu_util": "32%",
   "mem_util": "16%"
   "mem_total": "4294967296"
   "mem_used": "718798848"
   "mem_free": "3576168448"
  },
  {
   "device_name": "CometLake-H GT2 (UHD Graphics)",
   "gpu_clock": "1033MHz",
   "mem_clock": null,
   "temp": null,
   "fan_speed": "CPU Fan",
   "power_draw": null,
   "gpu_util": null,
   "mem_util": null
   "mem_total": "16532049920"
   "mem_used": null
   "mem_free": null
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions