fix(cache): use formatted numbers for displaying cache counts

This commit is contained in:
sct
2021-01-31 13:31:06 +00:00
parent cfacb151b5
commit 6c437c515f

View File

@@ -177,9 +177,9 @@ const SettingsJobs: React.FC = () => {
{cacheData?.map((cache) => ( {cacheData?.map((cache) => (
<tr key={`cache-list-${cache.id}`}> <tr key={`cache-list-${cache.id}`}>
<Table.TD>{cache.name}</Table.TD> <Table.TD>{cache.name}</Table.TD>
<Table.TD>{cache.stats.hits}</Table.TD> <Table.TD>{intl.formatNumber(cache.stats.hits)}</Table.TD>
<Table.TD>{cache.stats.misses}</Table.TD> <Table.TD>{intl.formatNumber(cache.stats.misses)}</Table.TD>
<Table.TD>{cache.stats.keys}</Table.TD> <Table.TD>{intl.formatNumber(cache.stats.keys)}</Table.TD>
<Table.TD>{formatBytes(cache.stats.ksize)}</Table.TD> <Table.TD>{formatBytes(cache.stats.ksize)}</Table.TD>
<Table.TD>{formatBytes(cache.stats.vsize)}</Table.TD> <Table.TD>{formatBytes(cache.stats.vsize)}</Table.TD>
<Table.TD alignText="right"> <Table.TD alignText="right">