Menu

#13 only last sensor specified is displayed on FreeBSD

v0.5.0-pre4
open
Matt B
FreeBSD (4)
5
2004-04-28
2004-04-28
No

For FreeBSD users there is a text in the settings file of
the sensors module that states, that on FreeBSD the only
fields required are <dbname>, <description> and <unit>.
However, the <device-file> field must be filled with an
unique identifier. Otherwise the makeindex.pl script only
creates an index file for the last sensor specified,
because all keys in the SENSOR dictionary are created of
the <device-file> field. If this is blank, the key from the
previous device will be overwritten.

This can be resolved by altering the documentation in the
settings file and state that <device-file> must be an
unique identifier or by altering the makeindex.pl script to
iterate over <dbname> instead over <device-file>. A diff
for this is included.

Regards
Robin Eckert

Discussion

  • Robin Eckert

    Robin Eckert - 2004-04-28

    Diff for makeindex script of sensor module to iterate over <dbname> instead of <device-file></device-file></dbname>

     
  • Alex V Breger

    Alex V Breger - 2008-11-10

    Thanks for patch!

     

Log in to post a comment.

Auth0 Logo