Skip to content

Commit

Permalink
Update instance.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
ma4z-sys authored Jan 10, 2025
1 parent 4c23883 commit 08a0027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/instance/instance.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ function updateCpuUsage(stats) {
// Update Disk Usage
function updateDiskUsage(stats) {
const diskUsageRaw = parseFloat(stats.volumeSize); // in MB
const diskLimitRaw = 10 * 1024; // Assuming 10GB limit (in MB)
const diskLimitRaw = <%= instance.Disk %> * 1024 || 10 * 1024;
const diskUsagePercent = (diskUsageRaw / diskLimitRaw * 100).toFixed(2);
// Update disk usage text content
Expand Down

0 comments on commit 08a0027

Please sign in to comment.