Skip to content
Snippets Groups Projects
Commit 0a3e9ad7 authored by Jason Parraga's avatar Jason Parraga
Browse files

Merge pull request #410 from Sovietaced/master

Issue #406 continued
parents 7123555b 816d133e
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