X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Flib%2Fnvidia.c;h=4f411e98f1794ff0922c4510c3b555601eb85642;hp=92d7574c056aaefdeb80c77c56dedcc4b468091b;hb=ecd968930278d22ce234485d1bddced831c82f0f;hpb=dcd813f21c83592155f712ff1acf450b483d8072 diff --git a/src/lib/nvidia.c b/src/lib/nvidia.c index 92d7574..4f411e9 100644 --- a/src/lib/nvidia.c +++ b/src/lib/nvidia.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 jeanfi@gmail.com + * Copyright (C) 2010-2014 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 @@ -33,9 +33,7 @@ Display *display; -/* - Returns the temperature (Celcius) of a NVidia GPU. -*/ +/* Returns the temperature (Celsius) of a NVIDIA GPU. */ static int get_temp(struct psensor *sensor) { int temp; @@ -65,14 +63,14 @@ static struct psensor *create_sensor(int id, int values_len) sprintf(name, "GPU%d", id); - sid = malloc(strlen("nvidia") + 1 + strlen(name) + 1); - sprintf(sid, "nvidia %s", name); + sid = malloc(strlen("NVIDIA") + 1 + strlen(name) + 1); + sprintf(sid, "NVIDIA %s", name); t = SENSOR_TYPE_NVCTRL | SENSOR_TYPE_GPU | SENSOR_TYPE_TEMP; s = psensor_create(sid, strdup(name), - strdup("Nvidia GPU"), + strdup(_("NVIDIA GPU")), t, values_len); @@ -83,9 +81,9 @@ static struct psensor *create_sensor(int id, int values_len) /* Opens connection to X server and returns the number - of NVidia GPUs. + of NVIDIA GPUs. - Return 0 if no NVidia gpus or cannot get information. + Return 0 if no NVIDIA gpus or cannot get information. */ static int init() {