Skip to content

Commit

Permalink
blocklist time fixed (output)
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/node/svn/hts@32 cfcc7383-0204-4295-856a-6b29432e848c
  • Loading branch information
eeezyy committed Jan 12, 2011
1 parent 8bb9752 commit 1948958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ void blocklist(int connFd) {
count += strlen(buffer);

while(temp != NULL) {
sprintf(buffer, "%15s\t%15s\t%15i\t%15ld\n", temp->username, temp->ipAddress, temp->count, (time(NULL)-temp->timeStamp+BLOCK_DURATION)/60);
sprintf(buffer, "%15s\t%15s\t%15i\t%15ld\n", temp->username, temp->ipAddress, temp->count, (temp->timeStamp-time(NULL)+BLOCK_DURATION)/60);

count += strlen(buffer);

Expand All @@ -684,7 +684,7 @@ void blocklist(int connFd) {
send(connFd, buffer, strlen(buffer), 0);

while(temp != NULL) {
sprintf(buffer, "%15s\t%15s\t%15i\t%15ld\n", temp->username, temp->ipAddress, temp->count, (time(NULL)-temp->timeStamp+BLOCK_DURATION)/60);
sprintf(buffer, "%15s\t%15s\t%15i\t%15ld\n", temp->username, temp->ipAddress, temp->count, (temp->timeStamp-time(NULL)+BLOCK_DURATION)/60);

send(connFd, buffer, strlen(buffer), 0);

Expand Down

0 comments on commit 1948958

Please sign in to comment.