Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
75f9068b
Commit
75f9068b
authored
4 years ago
by
Grzegorz Daniluk
Browse files
Options
Downloads
Patches
Plain Diff
snmp: refresh version data when getting OS status
parent
90c86174
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/snmpd/wrsOSStatusGroup.c
+4
-1
4 additions, 1 deletion
userspace/snmpd/wrsOSStatusGroup.c
with
4 additions
and
1 deletion
userspace/snmpd/wrsOSStatusGroup.c
+
4
−
1
View file @
75f9068b
...
...
@@ -47,6 +47,7 @@ time_t wrsOSStatus_data_fill(void)
time_t
time_free_mem
;
/* time when free memory data was updated */
time_t
time_cpu_load
;
/* time when cpu load data was updated */
time_t
time_disk_space
;
/* time when disk space data was updated */
time_t
time_version
;
/* time when version data was updated */
unsigned
int
n_rows_disk_space
;
/* number of rows in wrsDiskTable_array
*/
unsigned
int
i
;
...
...
@@ -64,12 +65,14 @@ time_t wrsOSStatus_data_fill(void)
time_free_mem
=
wrsMemory_data_fill
();
time_cpu_load
=
wrsCpuLoad_data_fill
();
time_disk_space
=
wrsDiskTable_data_fill
(
&
n_rows_disk_space
);
time_version
=
wrsVersion_data_fill
();
if
(
time_boot
<=
time_update
&&
time_temp
<=
time_update
&&
time_free_mem
<=
time_update
&&
time_cpu_load
<=
time_update
&&
time_disk_space
<=
time_update
)
{
&&
time_disk_space
<=
time_update
&&
time_version
<=
time_update
)
{
/* cache not updated, return last update time */
return
time_update
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment