summaryrefslogtreecommitdiff
path: root/Loadbars/Shared.pm
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2012-04-19 22:06:52 +0200
committerPaul Buetow <paul@buetow.org>2012-04-19 22:06:52 +0200
commit478bc6f14990fb966c71d976dbbaa6ce90e4d0dd (patch)
treef37a6d7e0373e950ae5d8a2422b3b9c2029e441f /Loadbars/Shared.pm
parent890c20955a00c26e543f941d2cc7fd29d21783d6 (diff)
add module Loadbars::Main
Diffstat (limited to 'Loadbars/Shared.pm')
-rw-r--r--Loadbars/Shared.pm36
1 files changed, 36 insertions, 0 deletions
diff --git a/Loadbars/Shared.pm b/Loadbars/Shared.pm
new file mode 100644
index 0000000..0b7a16d
--- /dev/null
+++ b/Loadbars/Shared.pm
@@ -0,0 +1,36 @@
+package Loadbars::Shared;
+
+my %PIDS : shared;
+my %AVGSTATS : shared;
+my %CPUSTATS : shared;
+my %MEMSTATS : shared;
+my %MEMSTATS_HAS : shared;
+#my %NETSTATS : shared;
+#my %NETSTATS_HAS : shared;
+
+# Global configuration hash
+my %C : shared;
+# Global configuration hash for internal settings (not configurable)
+my %I : shared;
+
+# Setting defaults
+%C = (
+ average => 15,
+ barwidth => 35,
+ extended => 0,
+ factor => 1,
+ height => 230,
+ maxwidth => 1280,
+ samples => 1000,
+ showcores => 0,
+ showmem => 0,
+ showtext => 1,
+ showtexthost => 0,
+ sshopts => '',
+);
+
+%I = (
+ cpuregexp => 'cpu',
+ showtextoff => 0,
+);
+