Mini Shell
# patch to add statistics for Paper_Lantern theme
# using:
#patch -t -F3 -b -z .orig_$(date +%F_%R) -r- -p0 -d / -N -i /usr/share/l.v.e-manager/cpanel/patches/1_paper_lantern_stats.patch
# for rollback patching use:
#patch -t -R -F3 -r- -p0 -d / -N -i /usr/share/l.v.e-manager/cpanel/patches/1_paper_lantern_stats.patch
# or use backup file with .orig_YYYY-mm-dd_HH:MM extension in same directory
# for 11.48.4.7 > cPanel >= 11.46.3.X
--- /usr/local/cpanel/base/frontend/paper_lantern/home/stats_bar.html.tt
+++ /usr/local/cpanel/base/frontend/paper_lantern/home/stats_bar.html.tt
@@ -19,7 +19,7 @@ IF xStatsCollapsed.status;
END;
IF hasCloudLinux;
- SET stats = execute( 'StatsBar', 'get_stats', { 'display' => 'lvecpu|lvemem|lvemep|diskusage|bandwidthusage', 'infinitylang' => 'true' } );
+ SET stats = execute( 'StatsBar', 'get_stats', { 'display' => 'lvecpu|lvemem|lvepmem|lvemep|lveproc|lveiop|lvequota|diskusage|bandwidthusage', 'infinitylang' => 'true' } );
ELSE;
SET stats = execute( 'StatsBar', 'get_stats', { 'display' => 'diskusage|bandwidthusage', 'infinitylang' => 'true' } );
END;
--- /usr/local/cpanel/base/frontend/paper_lantern/home/stats_display_name.html.tt
+++ /usr/local/cpanel/base/frontend/paper_lantern/home/stats_display_name.html.tt
@@ -19,5 +19,10 @@ SET stats_display_name_hash = {
"lvemep" => locale.maketext("Entry Processes"),
"diskusage" => locale.maketext("Disk Space Usage"),
"bandwidthusage" => locale.maketext("Monthly Bandwidth Transfer"),
+ "lvemep" => locale.maketext("Entry Processes"),
+ "lvepmem" => locale.maketext("Physical Memory Usage"),
+ "lveproc" => locale.maketext("Number of Processes"),
+ "lveiop" => locale.maketext("I/O Usage"),
+ "lvequota" => locale.maketext("inodes"),
};
-%]
# for cPanel >= 11.48.4.7
--- /usr/local/cpanel/base/frontend/paper_lantern/home/stats_bar.html.tt
+++ /usr/local/cpanel/base/frontend/paper_lantern/home/stats_bar.html.tt
@@ -19,7 +19,7 @@ IF xStatsCollapsed.status;
END;
IF hasCloudLinux;
- SET stats = execute( 'StatsBar', 'get_stats', { 'display' => 'lvecpu|lvemem|lvemep|diskusage|filesusage|bandwidthusage', 'infinitylang' => 'true' } );
+ SET stats = execute( 'StatsBar', 'get_stats', { 'display' => 'lvecpu|lvemem|lvepmem|lvemep|lveproc|lveiop|lvequota|diskusage|filesusage|bandwidthusage', 'infinitylang' => 'true' } );
ELSE;
SET stats = execute( 'StatsBar', 'get_stats', { 'display' => 'diskusage|filesusage|bandwidthusage', 'infinitylang' => 'true' } );
END;
--- /usr/local/cpanel/base/frontend/paper_lantern/home/stats_display_name.html.tt
+++ /usr/local/cpanel/base/frontend/paper_lantern/home/stats_display_name.html.tt
@@ -19,5 +19,10 @@ SET stats_display_name_hash = {
"lvemep" => locale.maketext("Entry Processes"),
"diskusage" => locale.maketext("Disk Space Usage"),
"bandwidthusage" => locale.maketext("Monthly Bandwidth Transfer"),
"filesusage" => locale.maketext("File Usage"),
+ "lvemep" => locale.maketext("Entry Processes"),
+ "lvepmem" => locale.maketext("Physical Memory Usage"),
+ "lveproc" => locale.maketext("Number of Processes"),
+ "lveiop" => locale.maketext("I/O Usage"),
+ "lvequota" => locale.maketext("inodes"),
};
-%]
# for cPanel >= 11.48.4.7
--- /usr/local/cpanel/base/frontend/paper_lantern/home/stats_display_name.html.tt
+++ /usr/local/cpanel/base/frontend/paper_lantern/home/stats_display_name.html.tt
@@ -20,5 +20,10 @@
"diskusage" => locale.maketext("Disk Space Usage"),
"bandwidthusage" => locale.maketext("Monthly Bandwidth Transfer"),
"filesusage" => locale.maketext("File Usage"),
+ "lvemep" => locale.maketext("Entry Processes"),
+ "lvepmem" => locale.maketext("Physical Memory Usage"),
+ "lveproc" => locale.maketext("Number of Processes"),
+ "lveiop" => locale.maketext("I/O Usage"),
+ "lvequota" => locale.maketext("inodes"),
};
-%]
Zerion Mini Shell 1.0