diff options
author | Jason Reiss <jreiss@multitech.com> | 2016-03-23 08:21:23 -0500 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2016-03-23 08:21:23 -0500 |
commit | 5a086515cd9dac84a2534af0656b586e7b314bcd (patch) | |
tree | deddba9bf744cad067577de52fd56bb916536f6e | |
parent | e0ebb9d5a3a51cdb1cdeced8a76dff86058f4fff (diff) | |
download | lora-query-5a086515cd9dac84a2534af0656b586e7b314bcd.tar.gz lora-query-5a086515cd9dac84a2534af0656b586e7b314bcd.tar.bz2 lora-query-5a086515cd9dac84a2534af0656b586e7b314bcd.zip |
stats: convert min/max/avg values to float to keep possible decimals1.0.2
-rw-r--r-- | main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -336,12 +336,12 @@ void printNodeList() { jNode[NODE_PKTS_1ST] = atoi(parts[index++].c_str()); jNode[NODE_PKTS_2ND] = atoi(parts[index++].c_str()); jNode[NODE_DROPPED] = atoi(parts[index++].c_str()); - jNode[NODE_RSSI_MIN] = atoi(parts[index++].c_str()); - jNode[NODE_RSSI_MAX] = atoi(parts[index++].c_str()); - jNode[NODE_RSSI_AVR] = atoi(parts[index++].c_str()); - jNode[NODE_SNR_MIX] = atoi(parts[index++].c_str()); - jNode[NODE_SNR_MAX] = atoi(parts[index++].c_str()); - jNode[NODE_SNR_AVR] = atoi(parts[index++].c_str()); + jNode[NODE_RSSI_MIN] = atof(parts[index++].c_str()); + jNode[NODE_RSSI_MAX] = atof(parts[index++].c_str()); + jNode[NODE_RSSI_AVR] = atof(parts[index++].c_str()); + jNode[NODE_SNR_MIX] = atof(parts[index++].c_str()); + jNode[NODE_SNR_MAX] = atof(parts[index++].c_str()); + jNode[NODE_SNR_AVR] = atof(parts[index++].c_str()); nodeList.append(jNode); } |