projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
06bb233
)
fix formatting
author
Evgeny Naumov
<evgeny.a.naumov@gmail.com>
Mon, 10 Sep 2018 16:18:06 +0000
(12:18 -0400)
committer
Evgeny Naumov
<evgeny.a.naumov@gmail.com>
Mon, 10 Sep 2018 16:18:06 +0000
(12:18 -0400)
src/gpu_nvml.c
patch
|
blob
|
history
diff --git
a/src/gpu_nvml.c
b/src/gpu_nvml.c
index
a41d601
..
ab4390b
100644
(file)
--- a/
src/gpu_nvml.c
+++ b/
src/gpu_nvml.c
@@
-31,8
+31,7
@@
static char *nv_errline = "";
#define WRAPGAUGE(x) ((value_t){.gauge = (gauge_t)(x)})
static const char *config_keys[] = {
#define WRAPGAUGE(x) ((value_t){.gauge = (gauge_t)(x)})
static const char *config_keys[] = {
- "GPUIndex",
- "IgnoreSelected",
+ "GPUIndex", "IgnoreSelected",
};
static const unsigned int n_config_keys = STATIC_ARRAY_SIZE(config_keys);
};
static const unsigned int n_config_keys = STATIC_ARRAY_SIZE(config_keys);
@@
-175,7
+174,7
@@
static int nvml_read(void) {
return 0;
return 0;
-
// Failures here indicate serious misconfiguration; we bail out totally.
+// Failures here indicate serious misconfiguration; we bail out totally.
catch_nocount:
ERROR("Failed to enumerate NVIDIA GPUs (\"%s\" returned %d)", nv_errline,
nv_status);
catch_nocount:
ERROR("Failed to enumerate NVIDIA GPUs (\"%s\" returned %d)", nv_errline,
nv_status);