nvidia-smi output changed, so the parser fixed.
This commit is contained in:
parent
493b23da0e
commit
4bd3c716fa
|
@ -3142,13 +3142,13 @@ sensors_nvidia_smi_read(gboolean setup)
|
|||
if (sscanf(str, " : %f", &temp) != 1)
|
||||
{
|
||||
stmp = str;
|
||||
str = g_strstr_len(str, -1, "Gpu");
|
||||
str = g_strstr_len(str, -1, "GPU Current Temp");
|
||||
if (!str)
|
||||
{
|
||||
str = stmp;
|
||||
continue;
|
||||
}
|
||||
str += 3;
|
||||
str += 27;
|
||||
if (sscanf(str, " : %f", &temp) != 1)
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue