From 5a086515cd9dac84a2534af0656b586e7b314bcd Mon Sep 17 00:00:00 2001 From: Jason Reiss Date: Wed, 23 Mar 2016 08:21:23 -0500 Subject: stats: convert min/max/avg values to float to keep possible decimals --- main.cpp | 12 ++++++------ 1 file 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); } -- cgit v1.2.3