Bug 1421926 - (experiment) not calling getFormattedSize in transferred size column draft
authorFred Lin <gasolin@gmail.com>
Fri, 01 Dec 2017 10:08:43 +0800
changeset 706033 d1173ee4d6976dff3a64fac230d63373e08e8907
parent 706025 a21f4e2ce5186e2dc9ee411b07e9348866b4ef30
child 742541 8d99b2652a8de1d35bed330932bd919eca5a779a
push id91669
push userbmo:gasolin@mozilla.com
push dateFri, 01 Dec 2017 02:09:03 +0000
bugs1421926
milestone59.0a1
Bug 1421926 - (experiment) not calling getFormattedSize in transferred size column MozReview-Commit-ID: 6wqz7x7Xos7
devtools/client/netmonitor/src/components/RequestListColumnTransferredSize.js
--- a/devtools/client/netmonitor/src/components/RequestListColumnTransferredSize.js
+++ b/devtools/client/netmonitor/src/components/RequestListColumnTransferredSize.js
@@ -2,17 +2,17 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
 const { Component } = require("devtools/client/shared/vendor/react");
 const dom = require("devtools/client/shared/vendor/react-dom-factories");
 const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
-const { getFormattedSize } = require("../utils/format-utils");
+// const { getFormattedSize } = require("../utils/format-utils");
 const { L10N } = require("../utils/l10n");
 const { propertiesEqual } = require("../utils/request-utils");
 
 const { div } = dom;
 
 const UPDATED_TRANSFERRED_PROPS = [
   "transferredSize",
   "fromCache",
@@ -34,17 +34,17 @@ class RequestListColumnTransferredSize e
     let { fromCache, fromServiceWorker, status, transferredSize } = this.props.item;
     let text;
 
     if (fromCache || status === "304") {
       text = L10N.getStr("networkMenu.sizeCached");
     } else if (fromServiceWorker) {
       text = L10N.getStr("networkMenu.sizeServiceWorker");
     } else if (typeof transferredSize == "number") {
-      text = getFormattedSize(transferredSize);
+      text = transferredSize;//getFormattedSize(transferredSize);
     } else if (transferredSize === null) {
       text = L10N.getStr("networkMenu.sizeUnavailable");
     }
 
     return (
       div({ className: "requests-list-column requests-list-transferred", title: text },
         text
       )