nvidia-smi output changed, so the parser fixed.

This commit is contained in:
Kolan Sh 2016-10-11 14:22:43 +03:00
parent 493b23da0e
commit 4bd3c716fa
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}