summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2016-03-23 08:21:23 -0500
committerJason Reiss <jreiss@multitech.com>2016-03-23 08:21:23 -0500
commit5a086515cd9dac84a2534af0656b586e7b314bcd (patch)
treededdba9bf744cad067577de52fd56bb916536f6e
parente0ebb9d5a3a51cdb1cdeced8a76dff86058f4fff (diff)
downloadlora-query-1.0.2.tar.gz
lora-query-1.0.2.tar.bz2
lora-query-1.0.2.zip
stats: convert min/max/avg values to float to keep possible decimals1.0.2
-rw-r--r--main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index 98ed30f..1c39dea 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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);
}