summaryrefslogtreecommitdiff
path: root/lib/Loadbars/Shared.pm
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2012-04-19 23:19:40 +0200
committerPaul Buetow <paul@buetow.org>2012-04-19 23:19:40 +0200
commit7e51fd25571dbcc7e1aeb2d23a6dca521f984f80 (patch)
tree28f2f2dc1d9e11e6d95c8df3a7c1e088bf23ba6b /lib/Loadbars/Shared.pm
parent3609492eab66e31be4dee57dae2f755f5c5163d3 (diff)
font works again
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,
+);
+