update TitleWindowPage.ets master

Signed-off-by: project-two <haiqing1@huawei.com>
This commit is contained in:
project-two 2023-06-05 09:01:10 +00:00 committed by Gitee
parent 48f7269359
commit 3361909db6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -177,28 +177,6 @@ struct TitleWindowPage {
})
}
if (this.tIndexInfo["cpu"+ this.cpuCoreArr[1].toString() +"Frequency"] != undefined) {
ItemContent({
icon: $r("app.media.icon_counter"),
value: (parseInt(this.tIndexInfo["cpu"+ this.cpuCoreArr[1] +"Frequency"].toString()) / 1e3).toString() + "MHz " + this.tIndexInfo.cpu1Load + "%",
tittle: "CPU-B频率",
onClickCallBack: () => {
this.floatWindowEvent("sp_cpu1Frequency", FloatWindowConstant.CPU1_FREQUENCY)
}
})
}
if (this.tIndexInfo["cpu"+ this.cpuCoreArr[2].toString() +"Frequency"] != undefined) {
ItemContent({
icon: $r("app.media.icon_counter"),
value: (parseInt(this.tIndexInfo["cpu"+ this.cpuCoreArr[2] +"Frequency"].toString()) / 1e3).toString() + "MHz " + this.tIndexInfo.cpu2Load + "%",
tittle: "CPU-C频率",
onClickCallBack: () => {
this.floatWindowEvent("sp_cpu2Frequency", FloatWindowConstant.CPU2_FREQUENCY)
}
})
}
if (this.tIndexInfo.gpuFrequency != undefined) {
ItemContent({
icon: $r("app.media.icon_frame_score"),