Added overwrite output mode for things like live monitoring.

This commit is contained in:
2025-02-02 23:40:38 -08:00
parent 13aa5b023e
commit 54885e16f0
5 changed files with 32 additions and 11 deletions
+2 -4
View File
@@ -2,14 +2,12 @@
#include "nvidia-sensors.h"
int init_nvml()
void init_nvml()
{
nvmlReturn_t result;
result = nvmlInit_v2();
if (result != NVML_SUCCESS) {
if (result != NVML_SUCCESS)
printf("Could not init NVML: %s\n", nvmlErrorString(result));
return 0;
}
}
void print_nvml_temp(int compact, struct card_info *card)