-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch RX and TX arrow marks correctly
the arrow marks must be from server perpective not `mc` perspective.
- Loading branch information
1 parent
7a0a8f5
commit a472e3d
Showing
1 changed file
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1152,12 +1152,12 @@ func (m *traceStatsUI) View() string { | |
if v.CallStatsCount > 0 { | ||
var s, r []string | ||
if v.CallStats.Rx > 0 { | ||
s = append(s, fmt.Sprintf("↓ %s", humanize.IBytes(uint64(v.CallStats.Rx/v.CallStatsCount)))) | ||
r = append(r, fmt.Sprintf("↓ %s", humanize.IBytes(uint64(float64(v.CallStats.Rx)/dur.Minutes())))) | ||
s = append(s, fmt.Sprintf("↑ %s", humanize.IBytes(uint64(v.CallStats.Rx/v.CallStatsCount)))) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
klauspost
Contributor
|
||
r = append(r, fmt.Sprintf("↑ %s", humanize.IBytes(uint64(float64(v.CallStats.Rx)/dur.Minutes())))) | ||
} | ||
if v.CallStats.Tx > 0 { | ||
s = append(s, fmt.Sprintf("↑ %s", humanize.IBytes(uint64(v.CallStats.Tx/v.CallStatsCount)))) | ||
r = append(r, fmt.Sprintf("↑ %s", humanize.IBytes(uint64(float64(v.CallStats.Tx)/dur.Minutes())))) | ||
s = append(s, fmt.Sprintf("↓ %s", humanize.IBytes(uint64(v.CallStats.Tx/v.CallStatsCount)))) | ||
r = append(r, fmt.Sprintf("↓ %s", humanize.IBytes(uint64(float64(v.CallStats.Tx)/dur.Minutes())))) | ||
} | ||
if len(s) > 0 { | ||
sz = strings.Join(s, " ") | ||
|
@harshavardhana From the handler (server) perspective: Rx = Received, meaning downloaded, meaning arrow down.
You are switching this to the sender perspective. Here is the current:
From the server perspective PutObjectPart is downloading. The client is uploading.
So either you want it from the client perspective (and we keep this swap), or from the server perspective and we revert.