summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ot_http.c4
-rw-r--r--ot_stats.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ot_http.c b/ot_http.c
index e364809..c544468 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -46,7 +46,7 @@ static void http_senddata( const int64 sock, struct ot_workstruct *ws ) {
46 ssize_t written_size; 46 ssize_t written_size;
47 47
48 if( !cookie ) { io_close(sock); return; } 48 if( !cookie ) { io_close(sock); return; }
49 49
50 /* whoever sends data is not interested in its input-array */ 50 /* whoever sends data is not interested in its input-array */
51 if( ws->keep_alive && ws->header_size != ws->request_size ) { 51 if( ws->keep_alive && ws->header_size != ws->request_size ) {
52 size_t rest = ws->request_size - ws->header_size; 52 size_t rest = ws->request_size - ws->header_size;
@@ -55,7 +55,7 @@ static void http_senddata( const int64 sock, struct ot_workstruct *ws ) {
55 array_truncate( &cookie->request, 1, rest ); 55 array_truncate( &cookie->request, 1, rest );
56 } else 56 } else
57 array_catb(&cookie->request, ws->request + ws->header_size, rest ); 57 array_catb(&cookie->request, ws->request + ws->header_size, rest );
58 } else 58 } else
59 array_reset( &cookie->request ); 59 array_reset( &cookie->request );
60 60
61 written_size = write( sock, ws->reply, ws->reply_size ); 61 written_size = write( sock, ws->reply, ws->reply_size );
diff --git a/ot_stats.c b/ot_stats.c
index 8ba6ade..43ab8fd 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -168,7 +168,7 @@ static size_t stats_get_highscore_networks( stats_network_node *node, int depth,
168 node_score = stats_get_highscore_networks( node->children[i], depth+STATS_NETWORK_NODE_BITWIDTH, node_value, scores, networks, network_count, limit ); 168 node_score = stats_get_highscore_networks( node->children[i], depth+STATS_NETWORK_NODE_BITWIDTH, node_value, scores, networks, network_count, limit );
169 169
170 score += node_score; 170 score += node_score;
171 171
172 if( node_score <= scores[0] ) continue; 172 if( node_score <= scores[0] ) continue;
173 173
174 __STR(node_value,depth,i); 174 __STR(node_value,depth,i);