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

Commit

Permalink
Merge pull request #112 from felixbrucker/feature/raw-bytes-rpc
Browse files Browse the repository at this point in the history
Add used space in raw bytes as well
  • Loading branch information
bookchin committed May 2, 2017
2 parents 9813d03 + 2c7c043 commit 729ce32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/farmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function updatePercentUsed() {
config.storageManager._storage.size((err, result) => {
if (result) {
farmerState.spaceUsed = bytes(result);
farmerState.spaceUsedBytes = result;
farmerState.percentUsed = ((result / spaceAllocation) * 100).toFixed();
}
});
Expand Down

0 comments on commit 729ce32

Please sign in to comment.