Skip to content
Snippets Groups Projects
Commit 816d133e authored by Sovietaced's avatar Sovietaced
Browse files

Issue #406 continued

parent 8432cc35
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,10 @@ public class PerfMonToggleResource extends ServerResource {
String param = ((String)getRequestAttributes().get("perfmonstate")).toLowerCase();
if (param.equals("reset")) {
// We cannot reset something that is disabled, so enable it first.
if(!pktinProcTime.isEnabled()){
pktinProcTime.setEnabled(true);
}
pktinProcTime.getCtb().reset();
} else {
if (param.equals("enable") || param.equals("true")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment