aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--P3/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/P3/server.c b/P3/server.c
index f6db56d..7c863f2 100644
--- a/P3/server.c
+++ b/P3/server.c
@@ -246,7 +246,7 @@ int main(int argc, char **argv) {
printf("Number of dispatchers is invalid. It must be greater than 0 or less than 101.\n");
return -1;
}
- if (qLen > MAX_queue_len || qLen <= 0) {
+ if (qLen > MAX_queue_len || qLen < 1) {
printf("Queue length is invalid.\n");
return -1;
}