File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
core/frontend/src/components/system-information Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments