From 204d328ce93cf2d4ec0c26cb6e6bc6d322eac2c8 Mon Sep 17 00:00:00 2001
From: Robert Anderson <randerson@lbsd.net>
Date: Thu, 2 Jul 2009 09:38:24 +0000
Subject: [PATCH] Resized location field Incorrect GB / TB calculation

---
 webgui/include/ajax/functions/WiSPUsers.php | 8 ++++----
 webgui/js/app/windows/WiSPUsers.js          | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/webgui/include/ajax/functions/WiSPUsers.php b/webgui/include/ajax/functions/WiSPUsers.php
index 8fdc129e..c72c5c1a 100644
--- a/webgui/include/ajax/functions/WiSPUsers.php
+++ b/webgui/include/ajax/functions/WiSPUsers.php
@@ -266,9 +266,9 @@ function createWiSPUser($params) {
 							case "MBytes":
 								$attrValue = $attr['Value'];
 							case "GBytes":
-								$attrValue = $attr['Value'] * 1024;
+								$attrValue = $attr['Value'] * 1000;
 							case "TBytes":
-								$attrValue = $attr['Value'] * 1048576;
+								$attrValue = $attr['Value'] * 1000000;
 						}
 					}
 				}
@@ -390,9 +390,9 @@ function createWiSPUser($params) {
 									case "MBytes":
 										$attrValue = $attr['Value'];
 									case "GBytes":
-										$attrValue = $attr['Value'] * 1024;
+										$attrValue = $attr['Value'] * 1000;
 									case "TBytes":
-										$attrValue = $attr['Value'] * 1048576;
+										$attrValue = $attr['Value'] * 1000000;
 								}
 							}
 						}
diff --git a/webgui/js/app/windows/WiSPUsers.js b/webgui/js/app/windows/WiSPUsers.js
index 9a943f57..9a2aba0c 100644
--- a/webgui/js/app/windows/WiSPUsers.js
+++ b/webgui/js/app/windows/WiSPUsers.js
@@ -613,7 +613,7 @@ function showWiSPUserAddEditWindow(id) {
 									fieldLabel: 'Location',
 									name: 'Location',
 									allowBlank: true,
-									width: 160,
+									width: 140,
 
 									store: new Ext.ux.JsonStore({
 										sortInfo: { field: "Name", direction: "ASC" },
-- 
GitLab