Skip to content

All load information is misunderstood and incorrectly set. #23

Description

@xianglin1998

Most of the system's load information statistics only have a time range of 1-5-15, and our repo mistakenly gave a very strange time range of 10 minutes.

The value given to 10 minutes on the Windows platform points to a variable that has not undergone any updates at all.
Now load is fixed of 0 on windows, for 10 minute value.
https://github.com/EnterpriseDB/system_stats/blob/84f50fd8b6282369fd853a9cf2feedc01dbd2847/windows/load_avg.c#L125C69-L125C69

PSutil's code repository has the same implementation, but their scope is only 1-5-15
https://github.com/giampaolo/psutil/blob/e9dabbbcae38a52a725722c6e3df0dc94c6051ab/psutil/arch/windows/wmi.c#L118

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions