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:
martinthonon 2025-03-31 10:52:38 +02:00
parent 8e79856168
commit f09500f520

View file

@ -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),
}
}