Changeset 1270

Show
Ignore:
Timestamp:
06/06/07 12:13:45 (5 years ago)
Author:
lupe
Message:

Allow for negative temperatures in the sensors plugin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2-stable/node/node.d.linux/sensors_.in

    r1232 r1270  
    7272                       }, 
    7373               temp => { 
    74                          regex => qr/^(\S[^:]*)\s*:\s+\+?(\d+(?:\.\d+)?)[° ]C(?:\s+\((?:high|limit)\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C,\s*hyst(?:eresis)?\s*=\s*\+?(\d+(?:\.\d+)?)[° ]C\))?/m, 
     74                         regex => qr/^(\S[^:]*)\s*:\s+\+?(-?\d+(?:\.\d+)?)[° ]C(?:\s+\((?:high|limit)\s*=\s*\+?(-?\d+(?:\.\d+)?)[° ]C,\s*hyst(?:eresis)?\s*=\s*\+?(-?\d+(?:\.\d+)?)[° ]C\))?/m, 
    7575                         title => 'Temperatures', 
    7676                         vtitle => 'Celsius',