public static String formatPackets(long paramLong, boolean MB, boolean GB) {
		if (paramLong >= 1000000000L && GB) {
			return paramLong / 1000000000L + " B";
		}
		if (paramLong >= 10000000L && MB) {
			return paramLong / 1000000L + " M";
		}
		if (paramLong >= 1000L) {
			return paramLong / 1000L + " K";
		}
		return "" + paramLong;
	}