forked from I2P_Developers/i2p.i2p
Stats:
- 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:
@@ -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");
|
||||
}
|
||||
%>
|
||||
%>
|
||||
|
Reference in New Issue
Block a user