X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fnvidia.c;h=e2e06027c922ecbabe8fbf4a3fc04c514988b138;hb=45c8086f97097df36ba8cd0552f152be80f79b12;hp=10d0c654792725b97305012c6e999acfa43f3dfd;hpb=483d35af0bfd40ad10f7fdfbb958011beed4c9df;p=psensor.git diff --git a/src/lib/nvidia.c b/src/lib/nvidia.c index 10d0c65..e2e0602 100644 --- a/src/lib/nvidia.c +++ b/src/lib/nvidia.c @@ -1,22 +1,21 @@ /* - Copyright (C) 2010-2011 jeanfi@gmail.com - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301 USA -*/ - + * Copyright (C) 2010-2011 jeanfi@gmail.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ #include #include #define _(str) gettext(str) @@ -68,7 +67,7 @@ static struct psensor *create_sensor(int id, int values_len) sprintf(sid, "nvidia %s", name); s = psensor_create(sid, strdup(name), - SENSOR_TYPE_NVIDIA, values_len); + SENSOR_TYPE_NVIDIA_TEMP, values_len); s->nvidia_id = id; @@ -110,15 +109,15 @@ void nvidia_psensor_list_update(struct psensor **sensors) while (*ss) { s = *ss; - if (s->type == SENSOR_TYPE_NVIDIA) + if (s->type == SENSOR_TYPE_NVIDIA_TEMP) psensor_set_current_value(s, get_temp(s)); ss++; } } -struct psensor * * -nvidia_psensor_list_add(struct psensor **sensors, int values_len) +struct psensor **nvidia_psensor_list_add(struct psensor **sensors, + int values_len) { int i, n; struct psensor **tmp, **ss, *s;