From fe0832746b8b084f36706e296896a3a7e56e98cb Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Sun, 26 Feb 2012 03:31:04 +0100
Subject: [PATCH] intval() of a number seems unnecessary

and it could cause 32bit integer overflow issues
---
 lib/helper.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/helper.php b/lib/helper.php
index 2f71bdad2d..80074a21b9 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -194,7 +194,7 @@ class OC_Helper {
 			$bytes *= $bytes_array[$matches[1]];
 		}
 
-		$bytes = intval(round($bytes, 2));
+		$bytes = round($bytes, 2);
 
 		return $bytes; 
 	}
-- 
GitLab