Hi,
Sorry for the delay.
I am so sorry but while accepting the previous pull requests before your own pull requests I corrected your problem. However, I kept in mind the following code and I included it:
if (config.iface) {
lines.shift()
}
I didn't know that the first line of the result was the name of the interface when the iface option is set. Whatever, it is more safe to excep the first line when the iface name is present. Thank you for this tricks I didn't handle before.
You also add a new result called signal. An other user was asking for a result called quality with the same value: the signal level but in percentage. Since I accepted its PR first, the accepted name is quality but it doesn't change a lot of thing.
Thank you a lot for your propositions. They really improve the quality of code.
All my corrections are in the dev branch for now. So do not hesitate to try it and tell me if something is not correct.
Hi, Sorry for the delay. I am so sorry but while accepting the previous pull requests before your own pull requests I corrected your problem. However, I kept in mind the following code and I included it:
I didn't know that the first line of the result was the name of the interface when the iface option is set. Whatever, it is more safe to excep the first line when the iface name is present. Thank you for this tricks I didn't handle before.
You also add a new result called signal. An other user was asking for a result called quality with the same value: the signal level but in percentage. Since I accepted its PR first, the accepted name is quality but it doesn't change a lot of thing.
Thank you a lot for your propositions. They really improve the quality of code. All my corrections are in the dev branch for now. So do not hesitate to try it and tell me if something is not correct.