Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
fix telemtry reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Hall committed Jan 19, 2017
1 parent c8592fe commit b0a2940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/farmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b0a2940

Please sign in to comment.