mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.59.2
This commit is contained in:
parent
9eaa1f229e
commit
a6c4faaeb8
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
version=2.59.1
|
version=2.59.2
|
||||||
date="9/12/2017"
|
date="9/12/2017"
|
||||||
projet="simpledeb"
|
projet="simpledeb"
|
||||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||||
|
@ -2224,7 +2224,7 @@ fi_vrms(){ # 1/12/2017
|
||||||
}
|
}
|
||||||
|
|
||||||
# informations batterie(s), assigne $fg_nb_batt $fg_batt $fg_batt_serial
|
# informations batterie(s), assigne $fg_nb_batt $fg_batt $fg_batt_serial
|
||||||
figet_batt(){ #v2 11/11/2017
|
figet_batt(){ #v2 9/12/2017
|
||||||
local batt_detail batt_nb batt_unit batt_capa_design batt_capa_full batt_capa_now batt_conso
|
local batt_detail batt_nb batt_unit batt_capa_design batt_capa_full batt_capa_now batt_conso
|
||||||
local batt_volt_min batt_volt_now batt_status batt_cycle alert_batt_alarm
|
local batt_volt_min batt_volt_now batt_status batt_cycle alert_batt_alarm
|
||||||
local batt_sante batt_restant tempo batRep ibat uevent
|
local batt_sante batt_restant tempo batRep ibat uevent
|
||||||
|
@ -2315,7 +2315,7 @@ figet_batt(){ #v2 11/11/2017
|
||||||
batt_detail+="batterie très mal chargée (moins de 50%): mauvais état? "$'\n' #[ln 5]
|
batt_detail+="batterie très mal chargée (moins de 50%): mauvais état? "$'\n' #[ln 5]
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fg_nb_batt="$batt_nb"
|
fg_nb_batt=$(( "$batt_nb" ))
|
||||||
[ "$batt_detail" ] && fg_batt=${batt_detail::-1} # suppression dernier $'\n'
|
[ "$batt_detail" ] && fg_batt=${batt_detail::-1} # suppression dernier $'\n'
|
||||||
[ "$(xargs <<< $fg_batt_serial)" ] || fg_batt_serial+="n/a"
|
[ "$(xargs <<< $fg_batt_serial)" ] || fg_batt_serial+="n/a"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# changelog getInfo
|
# changelog getInfo
|
||||||
|
|
||||||
## getInfo 2.59.1 9/12/2017
|
## getInfo 2.59.2 9/12/2017
|
||||||
|
|
||||||
* révision: fi_system si plusieurs batteries
|
* révision: fi_system si plusieurs batteries
|
||||||
|
* fix: figet_batt, protection format numérique
|
||||||
|
|
||||||
## getInfo 2.59.0 8/12/2017
|
## getInfo 2.59.0 8/12/2017
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue