mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-01 19:07:36 +01:00
Update HacknetServerElem.tsx
Added some contrast between real and theoric displayed hashrate. As suggested by phyzical & nickofolas.
This commit is contained in:
parent
a7045a2343
commit
08a7f82e73
@ -70,7 +70,7 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
<Typography>
|
<Typography>
|
||||||
+<HashRate hashes={base_increase} /> (base increase, attained when no script is running) <br />
|
<span style={{ opacity: 0.50 }}> +<HashRate hashes={base_increase} /> </span> (base increase, attained when no script is running) <br />
|
||||||
+<HashRate hashes={modded_increase} /> (effective increase, taking current RAM usage into account)
|
+<HashRate hashes={modded_increase} /> (effective increase, taking current RAM usage into account)
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
<Typography>
|
<Typography>
|
||||||
+<HashRate hashes={base_increase} /> (base increase, attained when no script is running) <br />
|
<span style={{ opacity: 0.50 }}> +<HashRate hashes={base_increase} /> </span> (base increase, attained when no script is running) <br />
|
||||||
+<HashRate hashes={modded_increase} /> (effective increase, taking current RAM usage into account)
|
+<HashRate hashes={modded_increase} /> (effective increase, taking current RAM usage into account)
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
@ -180,7 +180,7 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
<Typography>
|
<Typography>
|
||||||
+<HashRate hashes={base_increase} /> (base increase, attained when no script is running) <br />
|
<span style={{ opacity: 0.50 }}> +<HashRate hashes={base_increase} /> </span> (base increase, attained when no script is running) <br />
|
||||||
+<HashRate hashes={modded_increase} /> (effective increase, taking current RAM usage into account)
|
+<HashRate hashes={modded_increase} /> (effective increase, taking current RAM usage into account)
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
@ -253,19 +253,21 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
<Typography>
|
<Typography>
|
||||||
<Hashes hashes={node.totalHashesGenerated} /> hashes producted by this server since last augment
|
<Hashes hashes={node.totalHashesGenerated} /> hashes produced by this server since last augment
|
||||||
installation.
|
installation.
|
||||||
<br />
|
<br />
|
||||||
<HashRate hashes={node.hashRate} /> current production rate.
|
<HashRate hashes={node.hashRate} /> current production rate.
|
||||||
<br />
|
<br />
|
||||||
<HashRate hashes={(node.hashRate * node.maxRam) / (node.maxRam - node.ramUsed)} /> max production
|
<span style={{ opacity: 0.50 }}>
|
||||||
rate. (achieved when 100% Ram is allocated to it)
|
<HashRate hashes={(node.hashRate * node.maxRam) / (node.maxRam - node.ramUsed)} />
|
||||||
|
</span>
|
||||||
|
{" "}max production rate. (achieved when 100% RAM is allocated to it)
|
||||||
<br />
|
<br />
|
||||||
{numeralWrapper.formatRAM(node.ramUsed)} / {numeralWrapper.formatRAM(node.maxRam)} (
|
{numeralWrapper.formatRAM(node.ramUsed)} / {numeralWrapper.formatRAM(node.maxRam)} (
|
||||||
{Math.round((100 * node.ramUsed) / node.maxRam)}%) Ram allocated to script.
|
{Math.round((100 * node.ramUsed) / node.maxRam)}%) RAM allocated to script.
|
||||||
<br />
|
<br />
|
||||||
{numeralWrapper.formatRAM(node.maxRam - node.ramUsed)} / {numeralWrapper.formatRAM(node.maxRam)} (
|
{numeralWrapper.formatRAM(node.maxRam - node.ramUsed)} / {numeralWrapper.formatRAM(node.maxRam)} (
|
||||||
{Math.round((100 * (node.maxRam - node.ramUsed)) / node.maxRam)}%) Ram allocated to hash production.
|
{Math.round((100 * (node.maxRam - node.ramUsed)) / node.maxRam)}%) RAM allocated to hash production.
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user