Skip to content

Commit

Permalink
core: frontend: store: system-information: Add periodic request for s…
Browse files Browse the repository at this point in the history
…ystem information

Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Feb 7, 2022
1 parent 7f8a55c commit 4bdf207
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/frontend/src/store/system-information.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { KernelMessage } from '@/types/system-information/kernel'
import { Netstat } from '@/types/system-information/netstat'
import { Platform } from '@/types/system-information/platform'
import { System } from '@/types/system-information/system'
import { callPeriodically } from '@/utils/helper_functions'

enum FetchType {
KernelType = 'kernel_buffer',
Expand Down Expand Up @@ -118,4 +119,7 @@ class SystemInformationStore extends VuexModule {
export { SystemInformationStore }

const system_information: SystemInformationStore = getModule(SystemInformationStore)

callPeriodically(system_information.fetchSystem, 5000)

export default system_information

0 comments on commit 4bdf207

Please sign in to comment.