From 249fc8b1c8022fabcf6d704b280aa6b33f05a21c Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 05 Oct 2010 15:03:52 -0400
Subject: [PATCH] Fixed: FS#1350 - Minor bugs in monitor and dashboard.
---
interface/web/sites/user_quota_stats.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/interface/web/sites/user_quota_stats.php b/interface/web/sites/user_quota_stats.php
index ce2c3bc..2e28d0d 100644
--- a/interface/web/sites/user_quota_stats.php
+++ b/interface/web/sites/user_quota_stats.php
@@ -33,9 +33,9 @@
$rec['bgcolor'] = $this->DataRowColor;
$username = $rec['system_user'];
- $rec['used'] = $monitor_data['user'][$username]['used'];
- $rec['soft'] = $monitor_data['user'][$username]['soft'];
- $rec['hard'] = $monitor_data['user'][$username]['hard'];
+ $rec['used'] = (is_numeric($monitor_data['user'][$username]['used'])) ? round($monitor_data['user'][$username]['used']/1024) .'MB' : $monitor_data['user'][$username]['used'].'B';
+ $rec['soft'] = $monitor_data['user'][$username]['soft'].'B';
+ $rec['hard'] = $monitor_data['user'][$username]['hard'].'B';
if($rec['soft'] == '0K') $rec['soft'] = $app->lng('unlimited');
if($rec['hard'] == '0K') $rec['hard'] = $app->lng('unlimited');
--
Gitblit v1.9.1