forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "show BPS, PPS, UTIL rates w/o previous clear (sonic-net#508)" (…
…sonic-net#718) * Revert "show BPS, PPS, UTIL rates w/o previous clear (sonic-net#508)" This reverts commit 148d455. * [portstat] use actual port speed for util calculation after revert Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
- Loading branch information
Showing
3 changed files
with
138 additions
and
61 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
def get_uptime(): | ||
with open('/proc/uptime') as fp: | ||
return float(fp.read().split(' ')[0]) | ||