-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PSU power threshold] Fix logic error: compare the system power with the PSU's power threshold #367
Merged
prgeor
merged 2 commits into
sonic-net:master
from
stephenxs:enhance-psu-threshold-check
Jul 7, 2023
Merged
[PSU power threshold] Fix logic error: compare the system power with the PSU's power threshold #367
prgeor
merged 2 commits into
sonic-net:master
from
stephenxs:enhance-psu-threshold-check
Jul 7, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Check the system power instead of PSU power against a single PSU's threshold Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
stephenxs
force-pushed
the
enhance-psu-threshold-check
branch
from
June 20, 2023 09:31
34c9d4a
to
1dc878c
Compare
stephenxs
changed the title
Adjust the logic to check PSU power threshold
[PSU power threshold] Fix logic error: compare the system power with the PSU's power
Jul 2, 2023
stephenxs
changed the title
[PSU power threshold] Fix logic error: compare the system power with the PSU's power
[PSU power threshold] Fix logic error: compare the system power with the PSU's power threshold
Jul 2, 2023
11 tasks
keboliu
approved these changes
Jul 7, 2023
prgeor
approved these changes
Jul 7, 2023
@prgeor could you create ADO for this? |
StormLiangMS
pushed a commit
that referenced
this pull request
Aug 14, 2023
…the PSU's power threshold (#367) * Adjust the logic to check PSU power threshold Check the system power instead of PSU power against a single PSU's threshold Signed-off-by: Stephen Sun <stephens@nvidia.com> * Log only once instead of logging per PSU Signed-off-by: Stephen Sun <stephens@nvidia.com> --------- Signed-off-by: Stephen Sun <stephens@nvidia.com>
StormLiangMS
pushed a commit
that referenced
this pull request
Aug 14, 2023
…the PSU's power threshold (#367) * Adjust the logic to check PSU power threshold Check the system power instead of PSU power against a single PSU's threshold Signed-off-by: Stephen Sun <stephens@nvidia.com> * Log only once instead of logging per PSU Signed-off-by: Stephen Sun <stephens@nvidia.com> --------- Signed-off-by: Stephen Sun <stephens@nvidia.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Motivation and Context
Compare the system power instead of PSU power with the PSU's threshold.
On a system with more than one PSU, the power consumption will not distribute evenly on both PSUs, as a result, it gives a wrong message sometimes.
To fix the error, it should compare system power with the PSU's threshold.
How Has This Been Tested?
Unit test
Manual test
Regression test
Additional Information (Optional)