Blame SOURCES/net-tools-ifconfig-EiB.patch

b18d28
diff --git a/lib/interface.c.old b/lib/interface.c
b18d28
index c734c83..9c49a03 100644
b18d28
--- a/lib/interface.c.old
b18d28
+++ b/lib/interface.c
b18d28
@@ -928,10 +928,10 @@ void ife_print_long(struct interface *ptr)
b18d28
 	 */
b18d28
 	rx = ptr->stats.rx_bytes;
b18d28
 	short_rx = rx * 10;
b18d28
-	if (rx > 1125899906842624ull) {
b18d28
-	    if (rx > (9223372036854775807ull / 10))
b18d28
-		short_rx = rx / 112589990684262ull;
b18d28
-	    else
b18d28
+	if (rx > 1152921504606846976ull) {
b18d28
+		short_rx = rx / 115292150460684697ull;
b18d28
+		Rext = "EiB";
b18d28
+	} else if (rx > 1125899906842624ull) {
b18d28
 		short_rx /= 1125899906842624ull;
b18d28
 	    Rext = "PiB";
b18d28
 	} else if (rx > 1099511627776ull) {
b18d28
@@ -949,10 +949,10 @@ void ife_print_long(struct interface *ptr)
b18d28
 	}
b18d28
 	tx = ptr->stats.tx_bytes;
b18d28
 	short_tx = tx * 10;
b18d28
-	if (tx > 1125899906842624ull) {
b18d28
-	    if (tx > (9223372036854775807ull / 10))
b18d28
-		short_tx = tx / 112589990684262ull;
b18d28
-	    else
b18d28
+	if (tx > 1152921504606846976ull) {
b18d28
+		short_tx = tx / 115292150460684697ull;
b18d28
+		Text = "EiB";
b18d28
+	} else if (tx > 1125899906842624ull) {
b18d28
 		short_tx /= 1125899906842624ull;
b18d28
 	    Text = "PiB";
b18d28
 	} else 	if (tx > 1099511627776ull) {