-
Notifications
You must be signed in to change notification settings - Fork 198
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
Termui updates #2212
Termui updates #2212
Conversation
core/converters_test.go
Outdated
2*secondsInAMinute + second: "2 minutes 1 second ", | ||
2*secondsInAMinute + 10*second: "2 minutes 10 seconds ", | ||
59*secondsInAMinute + 59*second: "59 minutes 59 seconds ", | ||
secondsInAHour: "1 hour ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an hour*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should think about how to change the cpu stats
) | ||
|
||
// StartMachineStatisticsPolling will start read information about current running machini | ||
func StartMachineStatisticsPolling(ash core.AppStatusHandler, pollingInterval time.Duration) error { | ||
// StartMachineStatisticsPolling will start read information about current running machine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove a blank space between current
and running
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
@@ -119,3 +138,13 @@ func (ns *NetStatistics) PercentSent() uint64 { | |||
func (ns *NetStatistics) PercentRecv() uint64 { | |||
return atomic.LoadUint64(&ns.percentRecv) | |||
} | |||
|
|||
// TotalBytesSendInCurrentEpoch returns total bytes send in current epoch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TotalBytesSendInCurrentEpoch returns the number of bytes sent in the current epoch *
also rename func name to Sent
instead of Send
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
@@ -53,3 +53,13 @@ func (psh *PresenterStatusHandler) GetNetworkSentBps() uint64 { | |||
func (psh *PresenterStatusHandler) GetNetworkSentBpsPeak() uint64 { | |||
return psh.getFromCacheAsUint64(core.MetricNetworkSentBpsPeak) | |||
} | |||
|
|||
// GetNetworkSendBytesInEpoch will return total bytes send in current epoch | |||
func (psh *PresenterStatusHandler) GetNetworkSendBytesInEpoch() uint64 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sent*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
wr.epochLoad.Percent = epochLoadPercent | ||
wr.epochLoad.Label = fmt.Sprintf("%d / %d rounds (~%sremaining)", currentEpochRound, currentEpochFinishRound, remainingTime) | ||
|
||
totalBytesSendInEpoch := wr.presenter.GetNetworkSendBytesInEpoch() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sent*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
|
||
wr.networkBytesInEpoch.Title = "Epoch - traffic:" | ||
wr.networkBytesInEpoch.Percent = 0 | ||
wr.networkBytesInEpoch.Label = fmt.Sprintf("send: %s / received: %s", core.ConvertBytes(totalBytesSendInEpoch), core.ConvertBytes(totalBytesReceivedInEpoch)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sent*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As suggested by @LucianMincu we might make it obvious that the network stats are per host, not per process.
I suggest to provide a screenshot of the changes implemented among a short documentation about each metric that should be proposed to the validator community for peer review. 🙏 |
maybe change |
sent per host should be sent/received or send/receive ... use the same verb tense, please |
traffic per host shows 0 / 0 |
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Modified termui gui: