[% SET CPANEL.CPVAR.dprefix = "../" %] [% SET liveinfo_usage = Api2.exec("LVEInfo", "getUsage", {"period"=>FORM.period} ); %] [% WRAPPER '_assets/master.html.tt' page_title = locale.maketext("Current Usage") app_key = 'cpu_and_concurrent_connection_usage' -%]
[% locale.maketext("CPU Usage") %] [% Api1.pre_exec("LVEInfo", "cpu") ; Api1.exec("LVEInfo", "cpu", [undef]) ; Api1.post_exec("LVEInfo", "cpu") %]% / 100%
[% locale.maketext("Memory Usage") %] [% Api1.pre_exec("LVEInfo", "mem") ; Api1.exec("LVEInfo", "mem", [undef]) ; Api1.post_exec("LVEInfo", "mem") %] / [% Api1.pre_exec("LVEInfo", "mem_limit") ; Api1.exec("LVEInfo", "mem_limit", [undef]) ; Api1.post_exec("LVEInfo", "mem_limit") %]
[% locale.maketext("Entry Processes") %] [% Api1.pre_exec("LVEInfo", "mep") ; Api1.exec("LVEInfo", "mep", [undef]) ; Api1.post_exec("LVEInfo", "mep") %] / [% Api1.pre_exec("LVEInfo", "mep_limit") ; Api1.exec("LVEInfo", "mep_limit", [undef]) ; Api1.post_exec("LVEInfo", "mep_limit") %]

[% locale.maketext("Timeframe") %]

[% locale.maketext("Usage") %]

[% IF liveinfo_usage.size; %] [% FOREACH usage IN liveinfo_usage; %] [% END %] [% END %]
From To aCPU mCpu aEP mEP lEP aMEM mMEM lMEM MemF MepF
[% usage.from.html() %] [% usage.to.html() %] [% usage.apcpu.html() %] [% usage.mpcpu.html() %] [% usage.aep.html() %] [% usage.mep.html() %] [% usage.lep.html() %] [% usage.aMemStr.html() %] [% usage.mMemStr.html() %] [% usage.lMemStr.html() %] [% usage.memf.html() %] [% usage.mepf.html() %]
[% END #wrapper -%]