Distinguish between html/text server stat queries
authorZdeněk Šustr <sustr4@cesnet.cz>
Wed, 30 May 2012 19:53:17 +0000 (19:53 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Wed, 30 May 2012 19:53:17 +0000 (19:53 +0000)
org.glite.lb.server/src/lb_proto.c

index 9ed3fd5..b1181ba 100644 (file)
@@ -936,7 +936,7 @@ edg_wll_ErrorCode edg_wll_Proto(edg_wll_Context ctx,
                        }
                        else {
                                edg_wll_StatisticsToHTML(ctx, &message, text);
-                               edg_wll_ServerStatisticsIncrement(ctx, SERVER_STATS_HTML_VIEWS);
+                               edg_wll_ServerStatisticsIncrement(ctx, text ? SERVER_STATS_TEXT_VIEWS : SERVER_STATS_HTML_VIEWS);
                        }
        /* GET [something else]: not understood */
                } else ret = HTTP_BADREQ;