Skip to content

Commit bb3d81c

Browse files
patrickelectricjoaoantoniocardoso
authored andcommitted
core: frontend: componentes: system-information: AboutThisSystem: Add model information
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 8f8e333 commit bb3d81c

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

core/frontend/src/components/system-information/AboutThisSystem.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default Vue.extend({
3232
name: 'Processes',
3333
data() {
3434
return {
35-
timer: 0,
35+
timer_unix: 0,
36+
timer_model: 0,
3637
}
3738
},
3839
computed: {
@@ -50,6 +51,12 @@ export default Vue.extend({
5051
{
5152
title: 'Kernel', value: `${info.kernel_version}`,
5253
},
54+
{
55+
title: 'Model',
56+
value: `${system_information.model?.model ?? 'Unknown Model'} `
57+
+ `- ${system_information.model?.arch ?? 'Unknown Architecture'} `
58+
+ `(${system_information.model?.cpu_name ?? 'Unknown CPU'})`,
59+
},
5360
{
5461
title: 'Hostname', value: `${info.host_name}`,
5562
},
@@ -75,10 +82,14 @@ export default Vue.extend({
7582
},
7683
},
7784
mounted() {
78-
this.timer = setInterval(() => system_information.fetchSystemInformation(FetchType.SystemUnixTimeSecondsType), 1000)
85+
this.timer_unix = setInterval(() => {
86+
system_information.fetchSystemInformation(FetchType.SystemUnixTimeSecondsType)
87+
}, 1000)
88+
this.timer_model = setInterval(() => system_information.fetchSystemInformation(FetchType.ModelType), 1000)
7989
},
8090
beforeDestroy() {
81-
clearInterval(this.timer)
91+
clearInterval(this.timer_unix)
92+
clearInterval(this.timer_model)
8293
},
8394
})
8495
</script>

0 commit comments

Comments
 (0)