diff --git a/main/dsp.c b/main/dsp.c
index d7f2e967f684c34223fa8027cc6639ce31448297..703a9f4ff6b510ace7cddf1140c7cf08cb88a262 100644
--- a/main/dsp.c
+++ b/main/dsp.c
@@ -1350,7 +1350,7 @@ int ast_dsp_busydetect(struct ast_dsp *dsp)
 		dsp->busymaybe = 0;
 		min = 9999;
 		max = 0;
-		for (x=DSP_HISTORY - dsp->busycount;x<DSP_HISTORY;x++) {
+		for (x = DSP_HISTORY - dsp->busycount; x < DSP_HISTORY; x++) {
 #if 0
 			printf("Silence: %d, Noise: %d\n", dsp->historicsilence[x], dsp->historicnoise[x]);
 #endif