make specifying hdd names more flexible
authorPhil <n0-1@users.sourceforge.net>
Mon, 31 Mar 2008 15:33:54 +0000 (15:33 +0000)
committerPhil <n0-1@users.sourceforge.net>
Mon, 31 Mar 2008 15:33:54 +0000 (15:33 +0000)
commitd9233257732caf5b3c94f3dff0b3b26d07770eec
tree6b889441b8fd77ccba764b71831aad6087494ff2
parentbe2cd44e6d271b8e0e5ec88ad5581fccf29ca94c
make specifying hdd names more flexible

* the macro DEV_NAME() "removes" any leading "/dev/"
  if existing
* the only object that needs the full path is hddtemp,
  so add code there to add "/dev/" if necessary
  (can't be done via macro)
* attempt to fix also the hddtemp output, as the
  "degree"-sign seems to be inserted in utf-8 and
  printed in latin.
* hddtemp breaks the rules by inserting the unit
  itself, but as it could be either "C" or "F", this
  would lead to confusion otherwise

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1091 7f574dfc-610e-0410-a909-a81674777703
src/conky.c
src/hddtemp.c