Skip to content

Commit

Permalink
fix vxworks_sysmon idle compare bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Van committed Aug 22, 2023
1 parent aa72599 commit 5e6c97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/modules/vxworks_sysmon/vxworks_sysmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ int vxworks_sysmon_update_stat(const char *fmt, ...)
//va_end(arg);

/* only want IDLE string */
if(strncmp("IDLE", buffer, 4))
if(strncmp("IDLE", buffer, 4) == 0)
{
if(state->num_cpus < VXWORKS_SYSMON_MAX_CPUS)
{
Expand Down

0 comments on commit 5e6c97b

Please sign in to comment.