Skip to content

Commit f73df74

Browse files
core: frontend: componentes: system-information: AboutThisSystem: Add model information
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 6953788 commit f73df74

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 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,9 @@ export default Vue.extend({
5051
{
5152
title: 'Kernel', value: `${info.kernel_version}`,
5253
},
54+
{
55+
title: 'Model', value: `${system_information.model?.model} - ${system_information.model?.arch} (${system_information.model?.cpu_name})`,
56+
},
5357
{
5458
title: 'Hostname', value: `${info.host_name}`,
5559
},
@@ -75,10 +79,12 @@ export default Vue.extend({
7579
},
7680
},
7781
mounted() {
78-
this.timer = setInterval(() => system_information.fetchSystemInformation(FetchType.SystemUnixTimeSecondsType), 1000)
82+
this.timer_unix = setInterval(() => system_information.fetchSystemInformation(FetchType.SystemUnixTimeSecondsType), 1000)
83+
this.timer_model = setInterval(() => system_information.fetchSystemInformation(FetchType.ModelType), 1000)
7984
},
8085
beforeDestroy() {
81-
clearInterval(this.timer)
86+
clearInterval(this.timer_unix)
87+
clearInterval(this.timer_model)
8288
},
8389
})
8490
</script>

0 commit comments

Comments
 (0)