update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.5.202-01302024'
|
VERS='2.5.203-01302024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report '
|
noheader=' update service dailytemp confsync -r -report '
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ CHECKTEMP(){
|
|||||||
[ ! -f ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt} ] && until [ -f ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt} ]; do tmp=tmp; done
|
[ ! -f ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt} ] && until [ -f ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt} ]; do tmp=tmp; done
|
||||||
[ "${avgdays}" != "noavg" ] && fan_average=$(bc <<< "scale=0; $(ROUNDHALVES $(bc <<< "scale=3; $(AVERAGETEMP ${SENSOR} ${avgdays} FanSpeed)/10"))*10/1")
|
[ "${avgdays}" != "noavg" ] && fan_average=$(bc <<< "scale=0; $(ROUNDHALVES $(bc <<< "scale=3; $(AVERAGETEMP ${SENSOR} ${avgdays} FanSpeed)/10"))*10/1")
|
||||||
echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR} Host Sensors ${idsST[Reset]}${idsCL[White]}[${vHOSTiDRACIP}]"
|
echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR} Host Sensors ${idsST[Reset]}${idsCL[White]}[${vHOSTiDRACIP}]"
|
||||||
[ -f ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.gl ] && FSC="${idsCL[Green]}" || [ ! -f ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.set ] && FSC="${idsCL[LightYellow]}" || FSC="${idsCL[Cyan]}"
|
[ -f ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.gl ] && FSC="${idsCL[Green]}" || [ ! -f ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set ] && FSC="${idsCL[LightYellow]}" || FSC="${idsCL[Cyan]}"
|
||||||
echo -en "${idsCL[LightCyan]} [FanSpeed=${FSC}$(cat ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt})${idsCL[LightCyan]}'% "
|
echo -en "${idsCL[LightCyan]} [FanSpeed=${FSC}$(cat ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt})${idsCL[LightCyan]}'% "
|
||||||
if [ "${avgdays}" != "noavg" ]; then
|
if [ "${avgdays}" != "noavg" ]; then
|
||||||
echo -e "${idsCL[LightYellow]} AVG=${fan_average}'%${idsCL[LightCyan]}]${idsCL[Default]}"
|
echo -e "${idsCL[LightYellow]} AVG=${fan_average}'%${idsCL[LightCyan]}]${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user