Added overwrite output mode for things like live monitoring.
This commit is contained in:
+2
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user