mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
longhorn support
* longhorn widget for showing storage stats as "disks"
This commit is contained in:
parent
c4333fd2dc
commit
8887fcc3ee
5 changed files with 173 additions and 13 deletions
|
@ -39,19 +39,7 @@ export default async function handler(req, res) {
|
|||
}
|
||||
});
|
||||
}
|
||||
// Maybe Storage CSI can provide this information
|
||||
// if (type === "disk") {
|
||||
// if (!existsSync(target)) {
|
||||
// return res.status(404).json({
|
||||
// error: "Target not found",
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// return res.status(200).json({
|
||||
// drive: await drive.info(target || "/"),
|
||||
// });
|
||||
// }
|
||||
//
|
||||
|
||||
if (type === "memory") {
|
||||
const SCALE_MB = 1024 * 1024;
|
||||
const usedMemMb = memUsage / SCALE_MB;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue