mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 05:47:14 +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.
|
<HashRate hashes={node.hashRate} /> current production rate.
|
||||||
<br />
|
<br />
|
||||||
<span style={{ opacity: 0.5 }}>
|
<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>{" "}
|
</span>{" "}
|
||||||
max production rate. (achieved when 100% RAM is allocated to it)
|
max production rate. (achieved when 100% RAM is allocated to it)
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
Reference in New Issue
Block a user