From 42c6f94f38001ce4acf96230149083f490180e7c Mon Sep 17 00:00:00 2001 From: Odin-interactive Date: Mon, 8 Nov 2021 21:16:53 +0300 Subject: [PATCH] Update tuesday_visual.html --- tuesday_visual.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tuesday_visual.html b/tuesday_visual.html index c494fe4..f88de18 100755 --- a/tuesday_visual.html +++ b/tuesday_visual.html @@ -4214,7 +4214,7 @@ } function project_statist(){ if(!setup_editor.csv){setup_editor.csv=[decodeURI('%09'),decodeURI('%0D')]} - var html="
Project statistics

" + var html="
Project metadata

" +'' +'' +'' @@ -4226,9 +4226,9 @@ modal_window("open",html); } function fileSize(b){ - if(b>=1073741824){b=(b/1073741824).toFixed(2)+' GB';} - else if(b>=1048576){b=(b/1048576).toFixed(2)+' MB';} - else if(b>=1024){b=(b/1024).toFixed(2)+' KB';} + if(b>=1000000000){b=(b/1000000000).toFixed(2)+' GB';} + else if(b>=1000000){b=(b/1000000).toFixed(2)+' MB';} + else if(b>=1000){b=(b/1000).toFixed(2)+' KB';} else if(b>=1){b=b+' bytes';} else {b='0 byte';} return b;
Count files: '+project_files.length+'Size files: '+fileSize(countBytes)+'