From 4c794a56f80f639867e90dd586cbf213ffa09e05 Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Thu, 07 Aug 2014 02:07:02 -0400
Subject: [PATCH] Suppress output from exec

---
 interface/lib/classes/functions.inc.php |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/interface/lib/classes/functions.inc.php b/interface/lib/classes/functions.inc.php
index 48aa361..8a287a4 100644
--- a/interface/lib/classes/functions.inc.php
+++ b/interface/lib/classes/functions.inc.php
@@ -229,7 +229,8 @@
 				if(preg_match($regex, $result['ip'])) $ips[] = $result['ip'];
 			}
 		}
-
+		
+		/*
 		$results = $app->db->queryAllRecords("SELECT xfer FROM dns_slave WHERE xfer != ''");
 		if(!empty($results) && is_array($results)){
 			foreach($results as $result){
@@ -260,6 +261,8 @@
 				}
 			}
 		}
+		*/
+		
 		$results = $app->db->queryAllRecords("SELECT remote_ips FROM web_database WHERE remote_ips != ''");
 		if(!empty($results) && is_array($results)){
 			foreach($results as $result){
@@ -309,11 +312,9 @@
 	 * @param int precicion - after-comma-numbers (default: 2)
 	 * @return string - formated bytes
 	 */
-
-
 	public function formatBytes($size, $precision = 2) {
 		$base=log($size)/log(1024);
-		$suffixes=array('', 'k', 'M', 'G', 'T');
+		$suffixes=array('', ' kB', ' MB', ' GB', ' TB');
 		return round(pow(1024, $base-floor($base)), $precision).$suffixes[floor($base)];
 	}
 

--
Gitblit v1.9.1