mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
BUGFIX: Hacknet server UI shows NaN hash rate when 100% RAM is being used (#2500)
This commit is contained in:
@@ -266,7 +266,15 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
||||
<HashRate hashes={node.hashRate} /> current production rate.
|
||||
<br />
|
||||
<span style={{ opacity: 0.5 }}>
|
||||
<HashRate hashes={(node.hashRate * node.maxRam) / (node.maxRam - node.ramUsed)} />
|
||||
<HashRate
|
||||
hashes={calculateHashGainRate(
|
||||
node.level,
|
||||
0,
|
||||
node.maxRam,
|
||||
node.cores,
|
||||
Player.mults.hacknet_node_money,
|
||||
)}
|
||||
/>
|
||||
</span>{" "}
|
||||
max production rate. (achieved when 100% RAM is allocated to it)
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user