Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69172 Details for
Bug 107076
app-admin/collectd (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sensors-2.1.0.patch - a patch to avoid filename collisions
sensors-2.1.0.patch (text/plain), 1.09 KB, created by
Tommie
on 2005-09-24 10:56:21 UTC
(
hide
)
Description:
sensors-2.1.0.patch - a patch to avoid filename collisions
Filename:
MIME Type:
Creator:
Tommie
Created:
2005-09-24 10:56:21 UTC
Size:
1.09 KB
patch
obsolete
>diff -Nru collectd-2.1.0/src/sensors.c collectd-2.1.0-new/src/sensors.c >--- collectd-2.1.0/src/sensors.c 2005-09-07 21:49:14.000000000 +0200 >+++ collectd-2.1.0-new/src/sensors.c 2005-09-24 19:48:26.000000000 +0200 >@@ -11,7 +11,7 @@ > > featurelist_t *first_feature = NULL; > >-static char *filename_format = "sensors-%s.rrd"; >+static char *filename_format = "sensors-%s-%s.rrd"; > > static char *ds_def[] = > { >@@ -103,12 +103,12 @@ > sensors_cleanup (); > } > >-void sensor_update_rrd (const char *feat_name, double value) >+void sensor_update_rrd (const char *chip_name, const char *feat_name, double value) > { > char filename[128]; > char buffer[128]; > >- if (snprintf (filename, 128, filename_format, feat_name) < 1) >+ if (snprintf (filename, 128, filename_format, chip_name, feat_name) < 1) > return; > > if (snprintf (buffer, 128, "N:%.3f", value) < 1) >@@ -127,7 +127,7 @@ > if (sensors_get_feature (*feature->chip, feature->data->number, &value) < 0) > continue; > >- sensor_update_rrd (feature->data->name, value); >+ sensor_update_rrd (feature->chip->prefix, feature->data->name, value); > } > > return (0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 107076
:
69154
|
69155
|
69156
|
69157
|
69171
|
69172
|
70664
|
70665
|
70667
|
71047
|
71048
|
71049
|
71050
|
71051
|
71274
|
72852
|
72853
|
74995
|
74996
|
74997
|
74998
|
74999
|
75109
|
75110
|
78563
|
78564
|
78565
|
78566
|
78567
|
79018
|
111075
|
111077
|
111079
|
123746
|
123749
|
146843
|
146845
|
146846
|
148498
|
150796
|
162497
|
162499
|
162500
|
162502
|
162586
|
217235
|
217390
|
241023