mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 17:07:49 +00:00
bug fix
This commit is contained in:
parent
6cd07f9008
commit
e6b7f6f682
6
inxi
6
inxi
|
@ -5382,6 +5382,12 @@ get_sensors_data()
|
|||
tempWorking=""
|
||||
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.
|
||||
# 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.
|
||||
|
|
Loading…
Reference in a new issue