Skip to content

Commit

Permalink
fix: make check-bbr (#4004)
Browse files Browse the repository at this point in the history
## Overview

very minor fix that fixes the `check-bbr` command

(cherry picked from commit c410d88)

# Conflicts:
#	Makefile
  • Loading branch information
evan-forbes authored and mergify[bot] committed Oct 29, 2024
1 parent 17a756a commit 3bce7fa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,19 @@ prebuilt-binary:
release --clean
.PHONY: prebuilt-binary

<<<<<<< HEAD
=======
## check-bbr: Check if your system uses BBR congestion control algorithm. Only works on Linux.
check-bbr:
@echo "Checking if BBR is enabled..."
@if [ "$$(sysctl net.ipv4.tcp_congestion_control | awk '{print $$3}')" != "bbr" ]; then \
echo "WARNING: BBR is not enabled. Please enable BBR for optimal performance. Call make enable-bbr or see Usage section in the README."; \
else \
echo "BBR is enabled."; \
fi
.PHONY: check-bbr

>>>>>>> c410d880 (fix: make check-bbr (#4004))
## enable-bbr: Enable BBR congestion control algorithm. Only works on Linux.
enable-bbr:
@echo "Configuring system to use BBR..."
Expand Down

0 comments on commit 3bce7fa

Please sign in to comment.