Cleanup: getPoolStats entfernt, nicht mehr verwendet
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -214,15 +214,6 @@ export default function DatasetsPage() {
|
|||||||
return datasets.filter((ds) => ds.name.split("/").length === 1)
|
return datasets.filter((ds) => ds.name.split("/").length === 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getPoolStats = (poolName: string) => {
|
|
||||||
const poolDatasets = datasets.filter((ds) => ds.name === poolName || ds.name.startsWith(poolName + "/"))
|
|
||||||
const totalUsed = poolDatasets.reduce((sum, ds) => sum + (ds.used || 0), 0)
|
|
||||||
const totalAvail = poolDatasets[0]?.avail || 0
|
|
||||||
const totalSize = totalUsed + totalAvail
|
|
||||||
const usagePercent = totalSize > 0 ? (totalUsed / totalSize) * 100 : 0
|
|
||||||
|
|
||||||
return { totalUsed, totalAvail, totalSize, usagePercent }
|
|
||||||
}
|
|
||||||
|
|
||||||
const getChildDatasets = (parent: string): Dataset[] => {
|
const getChildDatasets = (parent: string): Dataset[] => {
|
||||||
const prefix = parent + "/"
|
const prefix = parent + "/"
|
||||||
|
|||||||
Reference in New Issue
Block a user