This commit is contained in:
Jerry 2025-05-04 10:27:10 +08:00
parent 4c1a93ce14
commit 95b9ef7923

View File

@ -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');
}
}