braidfs 0.0.117 → 0.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -332,16 +332,19 @@ async function scan_files() {
|
|
|
332
332
|
scan_files.running = true
|
|
333
333
|
while (scan_files.do_again) {
|
|
334
334
|
scan_files.do_again = false
|
|
335
|
-
var timestamp = new Date().toLocaleTimeString(
|
|
336
|
-
'en-US', {minute: '2-digit', second: '2-digit', hour: '2-digit'}
|
|
337
|
-
)
|
|
338
|
-
console.log(`scan files.. `, timestamp)
|
|
339
335
|
|
|
340
336
|
if (watch_files?.watcher?.options?.usePolling)
|
|
341
337
|
console.log('Warning: BAD PERFORMANCE!! Filesystem using polling!')
|
|
342
338
|
|
|
339
|
+
var st = Date.now()
|
|
340
|
+
|
|
343
341
|
if (await f(sync_base))
|
|
344
342
|
on_watcher_miss(`scanner picked up a change that the watcher should have gotten`, false)
|
|
343
|
+
|
|
344
|
+
var timestamp = new Date().toLocaleTimeString(
|
|
345
|
+
'en-US', {minute: '2-digit', second: '2-digit', hour: '2-digit'}
|
|
346
|
+
)
|
|
347
|
+
console.log(`scan files.. ${timestamp}. ${Date.now() - st}ms`)
|
|
345
348
|
}
|
|
346
349
|
scan_files.running = false
|
|
347
350
|
|