问题修改
This commit is contained in:
parent
d4140341fd
commit
7b5e773567
Binary file not shown.
@ -53,7 +53,7 @@ export class CpuUsageMonitor {
|
|||||||
let cpuUsage = this.calculateCpuUsage(prevCpuTimes, currCpuTimes);
|
let cpuUsage = this.calculateCpuUsage(prevCpuTimes, currCpuTimes);
|
||||||
hilog.info(0x0000, this.TAG, `Current CPU Usage: ${cpuUsage.toFixed(2)}%`);
|
hilog.info(0x0000, this.TAG, `Current CPU Usage: ${cpuUsage.toFixed(2)}%`);
|
||||||
}, 1000); // 等待1秒
|
}, 1000); // 等待1秒
|
||||||
}, 1000)
|
}, 5000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -36,8 +36,6 @@ export default class EntryAbility extends UIAbility {
|
|||||||
// this.context
|
// this.context
|
||||||
// Main window is created, set main page for this ability
|
// Main window is created, set main page for this ability
|
||||||
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
||||||
CpuUsageMonitor.printCpuUsage();
|
|
||||||
await tcpUtil.init()
|
|
||||||
Logger.init()
|
Logger.init()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -489,7 +489,6 @@ export default class Judge {
|
|||||||
const msgStr = strArr[num];
|
const msgStr = strArr[num];
|
||||||
if (msgStr == '') {
|
if (msgStr == '') {
|
||||||
console.info(judgeTag, '模拟数据考试结束')
|
console.info(judgeTag, '模拟数据考试结束')
|
||||||
// globalThis.windowClass.setWindowSystemBarEnable(['navigation'])
|
|
||||||
clearInterval(judgeTimer)
|
clearInterval(judgeTimer)
|
||||||
this.checkExamIsEnd(true)
|
this.checkExamIsEnd(true)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user