From b042c269890125bda89fafe5e1a2a85aceffa7a0 Mon Sep 17 00:00:00 2001 From: SuriyaR Date: Tue, 9 Jun 2020 13:50:32 +0200 Subject: [PATCH] Commit for fix kb to GB --- server/utils/common.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/utils/common.ts b/server/utils/common.ts index 4738910..27e390d 100644 --- a/server/utils/common.ts +++ b/server/utils/common.ts @@ -253,8 +253,8 @@ const latestBlockDetails = async()=> { let disk_space = space.stdout.split('\t')[0]; const space_new = await exec('du -sk /root/.epic/main/'); - let disk_space_kb = space_new.stdout.split('\t')[0]; - + //let disk_space_kb = space_new.stdout.split('\t')[0]; + let disk_space_kb = (space_new.stdout.split('\t')[0] / 100000).toFixed(2)+"G"; let height = BlockchainLatestBlockQuery[0].height; var coin_existence; // if (height > 12960) { @@ -510,7 +510,7 @@ let currentReward = 16; progpowhashrate, randomxhashrate, totalFoundationReward, - diskSpace:disk_space, + diskSpace:disk_space_kb, diskSpaceKb : disk_space_kb }; }