Optimize database queries, add resilience with is_countable, refine UI for progress bars and tables, update scripts for dynamic resizing, and correct navbar link case sensitivity.
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<div class="row">
|
||||
<?php
|
||||
// =================================================================
|
||||
// STEP 1: Fetch all required data with minimal database queries (MSSQL SYNTAX)
|
||||
// STEP 1: Fetch all required data with minimal database queries
|
||||
// =================================================================
|
||||
|
||||
// Query 1: Get aggregated data for all clusters at once.
|
||||
@@ -198,8 +198,8 @@
|
||||
$p2 = ($total_vms > 0) ? ($owner2_count / $total_vms) * 100 : 0;
|
||||
|
||||
$vm_dist_html = "<div class='progress' style='border: 2px solid grey; height: 20px;'>
|
||||
<div class='progress-bar text-white' role='progressbar' style='width:$p1%'><b>$owner1_name: $owner1_count</b></div>
|
||||
<div class='progress-bar bg-info text-dark' role='progressbar' style='width:$p2%'><b>$owner2_name: $owner2_count</b></div>
|
||||
<div class='progress-bar text-white' role='progressbar' style='width:$p1%'><b>$owner1_name</b></div>
|
||||
<div class='progress-bar bg-info text-dark' role='progressbar' style='width:$p2%'><b>$owner2_name</b></div>
|
||||
</div>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user