mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-07-04 06:39:18 +00:00
优化
This commit is contained in:
parent
4c1a93ce14
commit
95b9ef7923
@ -1,5 +1,5 @@
|
||||
import System from '../../utils/core/system';
|
||||
import fs from 'fs/promises';
|
||||
import fs from 'fs';
|
||||
import logger from '../../utils/core/logger';
|
||||
import path from 'path';
|
||||
import paths from '../../utils/core/path';
|
||||
@ -13,7 +13,7 @@ class SystemService {
|
||||
public async getRestartTime() {
|
||||
logger.debug(`有个小可爱想知道核心重启花了多久..`);
|
||||
const restartTimePath = path.join(paths.get('temp'), 'restart_time');
|
||||
return await fs.readFile(restartTimePath, 'utf8');
|
||||
return fs.readFileSync(restartTimePath, 'utf8');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user