This repository was archived by the owner on Oct 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,14 @@ class FilesystemDisplay {
82
82
fs . readdir ( tcwd , ( err , content ) => {
83
83
if ( err !== null ) {
84
84
console . warn ( err ) ;
85
- this . setFailedState ( ) ;
85
+ if ( this . _noTracking === true && this . dirpath ) { // #262
86
+ this . setFailedState ( ) ;
87
+ setTimeout ( ( ) => {
88
+ this . readFS ( this . dirpath ) ;
89
+ } , 1000 ) ;
90
+ } else {
91
+ this . setFailedState ( ) ;
92
+ }
86
93
} else {
87
94
this . cwd = [ ] ;
88
95
this . _tmp = {
@@ -265,14 +272,14 @@ class FilesystemDisplay {
265
272
</div>` ;
266
273
} ) ;
267
274
this . filesContainer . innerHTML = filesDOM ;
268
-
275
+
269
276
// See #226
270
277
if ( ! isNaN ( this . fsBlock . use ) ) {
271
278
this . space_bar . text . innerHTML = `Mount <strong>${ this . fsBlock . mount } </strong> used <strong>${ Math . round ( this . fsBlock . use ) } %</strong>` ;
272
279
this . space_bar . bar . value = Math . round ( this . fsBlock . use ) ;
273
280
} else if ( ! isNaN ( ( this . fsBlock . size / this . fsBlock . used ) * 100 ) ) {
274
281
let usage = Math . round ( ( this . fsBlock . size / this . fsBlock . used ) * 100 ) ;
275
-
282
+
276
283
this . space_bar . text . innerHTML = `Mount <strong>${ this . fsBlock . mount } </strong> used <strong>${ usage } %</strong>` ;
277
284
this . space_bar . bar . value = usage ;
278
285
} else {
You can’t perform that action at this time.
0 commit comments