From b0a2940741f860a5d43d097b3d72ca2ef75f4d3a Mon Sep 17 00:00:00 2001 From: Gordon Hall Date: Thu, 19 Jan 2017 14:32:59 -0500 Subject: [PATCH] fix telemtry reporting --- script/farmer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/farmer.js b/script/farmer.js index 892da67..86081b7 100755 --- a/script/farmer.js +++ b/script/farmer.js @@ -56,13 +56,13 @@ function sendTelemetryReport() { let telemetry = new Telemetry(telemetryServer, config.keyPair); let report = { storageAllocated: spaceAllocation, - storageUsed: farmerState.spaceUsed, + storageUsed: bytes.parse(farmerState.spaceUsed), contactNodeId: config.keyPair.getNodeID(), paymentAddress: config.paymentAddress }; telemetry.send(report, (err) => { if (err) { - return config.logger.warn('failed to send telemetry report, reason: %s', + return config.logger.warn('telemetry report rejected, reason: %s', err.message); } config.logger.info('telemetry report delivered to %s: %j', telemetryServer,