- Refactor handling of required stats
    - Shorten description of required stats
    - Improve save messages on configstats.jsp
    - Change bw.sendBps and bw.receiveBps stats to bytes, not Kbytes
    - Expires directive for graphs
This commit is contained in:
zzz
2011-03-21 18:14:58 +00:00
parent ddddc686fe
commit 40fd4ccd15
27 changed files with 139 additions and 136 deletions

View File

@@ -42,6 +42,8 @@ if ( !rendered && ((rs != null) || fakeBw) ) {
}
} else {
response.setContentType("image/png");
// very brief 45 sec expire
response.setDateHeader("Expires", net.i2p.I2PAppContext.getGlobalContext().clock().now() + (45*1000));
int width = -1;
int height = -1;
int periodCount = -1;
@@ -80,4 +82,4 @@ if (!rendered) {
else
response.sendError(403, "No stat specified");
}
%>
%>