Skip to content

Commit

Permalink
fix: improve info display
Browse files Browse the repository at this point in the history
  • Loading branch information
tautcony committed Jan 8, 2024
1 parent 311a7c0 commit c0bf5e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup/dashboard/ws/dist/server.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup/dashboard/ws/src/widgets/disk_data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export async function diskData() {
const fsData = await si.fsSize();
return ReactDOMServer.renderToString(
<div>
{fsData.filter(data=>data.size > 1<<30).map(renderFileSystem)}
{fsData.filter(data => data.size > 1<<30 && !data.mount.startsWith("/var/lib/docker/overlay")).map(renderFileSystem)}
{await renderTorrentInfo()}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion setup/dashboard/ws/src/widgets/ram_stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function ramStats() {

const memBuffers = formatSize(mem.buffers);
const memCached = formatSize(mem.cached);
const memCachedPercent = mem.cached / mem.total * 100;
const memCachedPercent = toNumber((mem.cached / mem.total * 100).toFixed(2));

const memSwapUsed = formatSize(mem.swapused);
const memSwapFree = formatSize(mem.swapfree);
Expand Down

0 comments on commit c0bf5e5

Please sign in to comment.