storage size
This commit is contained in:
parent
2fb4c1b1ea
commit
5502374d9b
@ -248,6 +248,7 @@ const latestBlockDetails = async()=> {
|
|||||||
return(err_msg);
|
return(err_msg);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
// const space = await exec('du -sh /root/.epic/main/chain_data/ --exclude=*.zip');
|
// const space = await exec('du -sh /root/.epic/main/chain_data/ --exclude=*.zip');
|
||||||
const space = "1.7G /var/www/html/"
|
const space = "1.7G /var/www/html/"
|
||||||
// let disk_space = space.stdout.split('\t')[0];
|
// let disk_space = space.stdout.split('\t')[0];
|
||||||
@ -258,6 +259,13 @@ const latestBlockDetails = async()=> {
|
|||||||
//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] / 1000000).toFixed(2)+"G";
|
// let disk_space_kb = (space_new.stdout.split('\t')[0] / 1000000).toFixed(2)+"G";
|
||||||
let disk_space_kb = "1.7G"
|
let disk_space_kb = "1.7G"
|
||||||
|
*/
|
||||||
|
const space = await exec('du -sh /root/.epic/main/chain_data/ --exclude=*.zip');
|
||||||
|
let disk_space = space.stdout.split('\t')[0];
|
||||||
|
const space_new = await exec('du -sk /root/.epic/main/chain_data/ --exclude=*.zip');
|
||||||
|
//let disk_space_kb = space_new.stdout.split('\t')[0];
|
||||||
|
let disk_space_kb = (space_new.stdout.split('\t')[0] / 1000000).toFixed(2)+"G";
|
||||||
|
|
||||||
let height = BlockchainLatestBlockQuery[0].height;
|
let height = BlockchainLatestBlockQuery[0].height;
|
||||||
var coin_existence;
|
var coin_existence;
|
||||||
let DAY_HEIGHT = 1440
|
let DAY_HEIGHT = 1440
|
||||||
@ -456,6 +464,7 @@ const previousBlockDetails = async() => {
|
|||||||
return(err_msg);
|
return(err_msg);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
// const space = await exec('du -sh /root/.epic/main/chain_data/ --exclude=*.zip');
|
// const space = await exec('du -sh /root/.epic/main/chain_data/ --exclude=*.zip');
|
||||||
const space = "1.7G /var/www/html/"
|
const space = "1.7G /var/www/html/"
|
||||||
// let disk_space = space.stdout.split('\t')[0];
|
// let disk_space = space.stdout.split('\t')[0];
|
||||||
@ -466,6 +475,13 @@ const previousBlockDetails = async() => {
|
|||||||
//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] / 1000000).toFixed(2)+"G";
|
// let disk_space_kb = (space_new.stdout.split('\t')[0] / 1000000).toFixed(2)+"G";
|
||||||
let disk_space_kb = "1.7G"
|
let disk_space_kb = "1.7G"
|
||||||
|
*/
|
||||||
|
const space = await exec('du -sh /root/.epic/main/chain_data/ --exclude=*.zip');
|
||||||
|
let disk_space = space.stdout.split('\t')[0];
|
||||||
|
const space_new = await exec('du -sk /root/.epic/main/chain_data/ --exclude=*.zip');
|
||||||
|
//let disk_space_kb = space_new.stdout.split('\t')[0];
|
||||||
|
let disk_space_kb = (space_new.stdout.split('\t')[0] / 1000000).toFixed(2)+"G";
|
||||||
|
|
||||||
let height = BlockchainLatestBlockQuery[0].height;
|
let height = BlockchainLatestBlockQuery[0].height;
|
||||||
var coin_existence;
|
var coin_existence;
|
||||||
let DAY_HEIGHT = 1440
|
let DAY_HEIGHT = 1440
|
||||||
|
Loading…
Reference in New Issue
Block a user