This commit is contained in:
BIN
Binary file not shown.
+3
-3
@@ -24,8 +24,8 @@ void show_active_bans(void) {
|
|||||||
|
|
||||||
char line[MAX_LINE_LEN];
|
char line[MAX_LINE_LEN];
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
printf("%s%-20s %-15s%s\n", C_YELLOW, "IP 地址", "剩余时间", C_RESET);
|
printf("%s %-20s %-15s%s\n", C_YELLOW, "IP 地址", "剩余时间", C_RESET);
|
||||||
printf("-------------------------------------\n");
|
printf("-------------------------------------\n");
|
||||||
|
|
||||||
while (fgets(line, sizeof(line), fp)) {
|
while (fgets(line, sizeof(line), fp)) {
|
||||||
@@ -66,7 +66,7 @@ void show_active_bans(void) {
|
|||||||
snprintf(time_str, sizeof(time_str), "%llds", s);
|
snprintf(time_str, sizeof(time_str), "%llds", s);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%-20s %s\n", ip, time_str);
|
printf(" - %-20s %s\n", ip, time_str);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user