Skip to content

Commit

Permalink
Add ratio to server statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
jpovixwm authored and qu1ck committed Dec 1, 2023
1 parent 152724a commit e5847fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,14 @@ function Stats(props: { stats: SessionStatEntry }) {
<td>Uploaded</td>
<td>{bytesToHumanReadableStr(props.stats.uploadedBytes)}</td>
</tr>
<tr>
<td>Ratio</td>
<td>
{props.stats.downloadedBytes === 0
? "∞"
: (props.stats.uploadedBytes / props.stats.downloadedBytes).toFixed(2)}
</td>
</tr>
<tr>
<td>Files added</td>
<td>{props.stats.filesAdded}</td>
Expand Down

0 comments on commit e5847fd

Please sign in to comment.