summaryrefslogtreecommitdiff
path: root/lib/Loadbars/Shared.pm
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2012-04-20 22:23:41 +0200
committerPaul Buetow <paul@buetow.org>2012-04-20 22:23:41 +0200
commit46b7f1cfa7ab8da5b09ae765638f68bba20b2e02 (patch)
tree54e794fd8f41896b46a7cc9dd24df8b121874110 /lib/Loadbars/Shared.pm
parentb1fd6740d411c4960c6cc3b4bcdaa7b29d6a901f (diff)
re-add0.5.2
Diffstat (limited to 'lib/Loadbars/Shared.pm')
-rw-r--r--lib/Loadbars/Shared.pm52
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/Loadbars/Shared.pm b/lib/Loadbars/Shared.pm
new file mode 100644
index 0000000..0f02b7e
--- /dev/null
+++ b/lib/Loadbars/Shared.pm
@@ -0,0 +1,52 @@
+package Loadbars::Shared;
+
+use Exporter;
+
+use base 'Exporter';
+
+our @EXPORT = qw(
+ %PIDS
+ %AVGSTATS
+ %CPUSTATS
+ %MEMSTATS
+ %MEMSTATS_HAS
+ %C
+ %I
+);
+
+our %PIDS : shared;
+our %AVGSTATS : shared;
+our %CPUSTATS : shared;
+our %MEMSTATS : shared;
+our %MEMSTATS_HAS : shared;
+
+#my %NETSTATS : shared;
+#my %NETSTATS_HAS : shared;
+
+# Global configuration hash
+our %C : shared;
+
+# Global configuration hash for internal settings (not configurable)
+our %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,
+);
+