sensors and hddtemp changed to proper unicode "°"
sensors and hddtemp changed to proper unicode "°" from ascii symbol, but that broke the regexp. Proxmox 7/debian 11 comes with such a fix. Thanks /u/FreelancerJ for reporting
This commit is contained in:
parent
0785a260e9
commit
506a94a402
1 changed files with 3 additions and 3 deletions
|
|
@ -211,10 +211,10 @@ while () {
|
||||||
chomp @ambient_ipmitemps;
|
chomp @ambient_ipmitemps;
|
||||||
chomp @hddtemps;
|
chomp @hddtemps;
|
||||||
|
|
||||||
@cputemps = apply { s/.*: *([^ ]*).C.*/$1/ } @cputemps;
|
@cputemps = apply { s/.*: *([^ ]*)[.°]C.*/$1/ } @cputemps;
|
||||||
@coretemps = apply { s/.*: *([^ ]*).C.*/$1/ } @coretemps;
|
@coretemps = apply { s/.*: *([^ ]*)[.°]C.*/$1/ } @coretemps;
|
||||||
@ambient_ipmitemps = apply { s/.*\| ([^ ]*) degrees C.*/$1/ } @ambient_ipmitemps;
|
@ambient_ipmitemps = apply { s/.*\| ([^ ]*) degrees C.*/$1/ } @ambient_ipmitemps;
|
||||||
@hddtemps = apply { s/.*: *([^ ]*).C.*/$1/ } @hddtemps;
|
@hddtemps = apply { s/.*: *([^ ]*)[.°]C.*/$1/ } @hddtemps;
|
||||||
#FIXME: it is more important to keep hdds cool than CPUs. We should
|
#FIXME: it is more important to keep hdds cool than CPUs. We should
|
||||||
#put differnt offsets on them - possibly as easily as adding "10" to
|
#put differnt offsets on them - possibly as easily as adding "10" to
|
||||||
#hddtemp (but need to work out how to keep log output sane)
|
#hddtemp (but need to work out how to keep log output sane)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue