GUI -- Topo View - Clip bit rate to 10.0 Gbps - temporary measure for CORD Fabric demo at ONS 2015.

Change-Id: I840cbd6ff45fe502221d176b5a4d7cfa8d18237f
diff --git a/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java b/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java
index 534c8bc..e78a9cd 100644
--- a/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java
+++ b/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java
@@ -796,7 +796,7 @@
         return format.format(value) + " " + unit;
     }
 
-    // Poor-mans formatting to get the labels with byte counts looking nice.
+    // Poor-mans formatting to get the labels with bit rate looking nice.
     private String formatBitRate(long bytes) {
         String unit;
         double value;
@@ -805,6 +805,13 @@
         if (bits > GIGA) {
             value = bits / GIGA;
             unit = GBITS_UNIT;
+
+            // NOTE: temporary hack to clip rate at 10.0 Gbps
+            //  Added for the CORD Fabric demo at ONS 2015
+            if (value > 10.0) {
+                value = 10.0;
+            }
+
         } else if (bits > MEGA) {
             value = bits / MEGA;
             unit = MBITS_UNIT;