Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
75f9068b
Commit
75f9068b
authored
Mar 30, 2020
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmp: refresh version data when getting OS status
parent
90c86174
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wrsOSStatusGroup.c
userspace/snmpd/wrsOSStatusGroup.c
+4
-1
No files found.
userspace/snmpd/wrsOSStatusGroup.c
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment