From b8b466690e2aad2f73bc4b071707c28a6d093b85 Mon Sep 17 00:00:00 2001 From: SuriyaR <suriya.blazews@gmail.com> Date: Tue, 9 Jun 2020 13:36:39 +0200 Subject: [PATCH] commit for kb size of folder --- server/utils/common.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/utils/common.ts b/server/utils/common.ts index b28a660..4738910 100644 --- a/server/utils/common.ts +++ b/server/utils/common.ts @@ -252,6 +252,9 @@ const latestBlockDetails = async()=> { const space = await exec('du -sh /root/.epic/main/'); 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 height = BlockchainLatestBlockQuery[0].height; var coin_existence; // if (height > 12960) { @@ -507,7 +510,8 @@ let currentReward = 16; progpowhashrate, randomxhashrate, totalFoundationReward, - diskSpace:disk_space + diskSpace:disk_space, + diskSpaceKb : disk_space_kb }; }