Skip to content

Commit

Permalink
Add conflict rate to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
artur committed Oct 23, 2023
1 parent 849c008 commit 85829c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web/frontend/src/scenes/dashboard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const Dashboard = () => {
],
minSize: 4,
maxSize: 10000,
conflictRate: 0.17,
});

useEffect(() => {
Expand Down Expand Up @@ -99,6 +100,15 @@ const Dashboard = () => {
: (sizeStatistics.maxSize / 1024 / 1024).toFixed(2)
}
/>

<Stat
title="Conflct Rate (%)"
value={
sizeStatistics.conflictRate == null
? 0
: (sizeStatistics.conflictRate * 100).toFixed(2)
}
/>
</Grid2>
<Grid2 container spacing={1}>
<Histogram property="MIMETYPE"></Histogram>
Expand Down

0 comments on commit 85829c2

Please sign in to comment.