From 54ff63fba2f635f2e7af1b648d48519dce31df75 Mon Sep 17 00:00:00 2001 From: Ferdyan Date: Wed, 3 Jun 2026 23:54:34 +0700 Subject: [PATCH] fix(analisis) : memperbaiki rumus perhitungan analisis cakupan bantuan --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 8ce2c63..4fc7f17 100644 --- a/index.php +++ b/index.php @@ -2263,8 +2263,9 @@ if ($res && $row = mysqli_fetch_assoc($res)) { `; } else if (APP_STATE.activeTab === 'analysis') { + const totalAll = POOR_RESIDENTS.length; html = `
-

Cakupan Bantuan

${totalPts > 0 ? ((covered / totalPts) * 100).toFixed(1) : 0}%
+

Cakupan Bantuan

${totalAll > 0 ? ((covered / totalAll) * 100).toFixed(1) : 0}%

Di Luar Jangkauan

${uncovered}
Rekomendasi
✅ Perluas buffer dengan pos bantuan baru
✅ Fokus pada kecamatan dengan kerapatan tinggi
✅ Tambah rumah ibadah di area kosong