This commit is contained in:
inxi-svn 2011-06-24 22:18:37 +00:00
parent 6cd07f9008
commit e6b7f6f682

6
inxi
View file

@ -5382,6 +5382,12 @@ get_sensors_data()
tempWorking="" tempWorking=""
tempWorkingUnit="" tempWorkingUnit=""
} }
# new data arriving: gpu temp in sensors, have to skip that
/^radeon-/ {
while ( getline && !/^$/ ) {
# do nothing, just skip it
}
}
# dumping the extra + signs after testing for them, nobody has negative temps. # dumping the extra + signs after testing for them, nobody has negative temps.
# also, note gawk treats ° as a space, so we have to get the C/F data # also, note gawk treats ° as a space, so we have to get the C/F data
# there are some guesses here, but with more sensors samples it will get closer. # there are some guesses here, but with more sensors samples it will get closer.