mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +08:00
tweak: record time for permission scans
This commit is contained in:
parent
cca19ad495
commit
580fbdb113
@ -195,13 +195,19 @@ class PermissionService extends BaseService {
|
||||
permission_options = [permission_options];
|
||||
}
|
||||
|
||||
const start_ts = Date.now();
|
||||
await require('../../structured/sequence/scan-permission')
|
||||
.call(this, {
|
||||
actor,
|
||||
permission_options,
|
||||
reading,
|
||||
});
|
||||
|
||||
const end_ts = Date.now();
|
||||
reading.push({
|
||||
$: 'time',
|
||||
value: end_ts - start_ts,
|
||||
});
|
||||
|
||||
return reading;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user