Skip to content

Comments

Added Interrupts collector (/proc/interrupts)#14

Open
sireoko wants to merge 3 commits intoxray-team:masterfrom
sireoko:interrupts-collector
Open

Added Interrupts collector (/proc/interrupts)#14
sireoko wants to merge 3 commits intoxray-team:masterfrom
sireoko:interrupts-collector

Conversation

@sireoko
Copy link

@sireoko sireoko commented Aug 24, 2023

No description provided.

Comment on lines 3 to 6
type Interrupts struct {
Total int64 // Total interrupts
PerCPU map[int]int64 // Number of interrupts for each cpu since system startup.
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data struct must be like

type Interrupts struct {
Total InterrupstStat // Total interrupts
PerCPU map[int]InterrupstStat // Number of interrupts for each cpu since system startup.
}

type InterrupstStat struct {
Total int64 // The total number of interrupts
}

Copy link
Member

@exsver exsver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix Interrups Data

@sireoko sireoko requested a review from exsver August 31, 2023 17:23
Comment on lines 3 to 10
type Interrupts struct {
Total int64 // Total interrupts
PerCPU map[int]int64 // Number of interrupts for each cpu since system startup.
Total InterruptsStat
PerCPU map[int]InterruptsStat
}

type InterruptsStat struct {
Total int64 // The total number of interrupts
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interrupts data struct refactored to more flexible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants