mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-08 02:01:14 +03:00
Refactor: Improve Inbound Capabilities Counting
Improve correctness by incrementing the inbound capabilities by one in the 'peers and sync' menu. With the default value for inbound set to 128, it was a bit misleading to see 127. Non-programmers start counting at 1, not 0.
This commit is contained in:
parent
8e79856168
commit
f09500f520
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ impl TableViewItem<PeerColumn> for PeerStats {
|
|||
PeerColumn::Direction => self.direction.clone(),
|
||||
PeerColumn::Version => format!("{}", self.version),
|
||||
PeerColumn::UserAgent => self.user_agent.clone(),
|
||||
PeerColumn::Capabilities => format!("{}", self.capabilities.bits()),
|
||||
PeerColumn::Capabilities => format!("{}", self.capabilities.bits() + 1),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue