summaryrefslogtreecommitdiff
path: root/Loadbars/Shared.pm
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2012-04-19 22:53:12 +0200
committerPaul Buetow <paul@buetow.org>2012-04-19 22:53:12 +0200
commit87baf9f357728a69c8b84cd0154ad3f3e4dac2b6 (patch)
tree2c8b2fea19afa2a5f3c91687c46f2d4cfec14e8f /Loadbars/Shared.pm
parentc16d12685eaeb94a57dcd6d72945d7d892561e5e (diff)
some restructuring
Diffstat (limited to 'Loadbars/Shared.pm')
-rw-r--r--Loadbars/Shared.pm28
1 files changed, 21 insertions, 7 deletions
diff --git a/Loadbars/Shared.pm b/Loadbars/Shared.pm
index df2abf6..0f02b7e 100644
--- a/Loadbars/Shared.pm
+++ b/Loadbars/Shared.pm
@@ -1,19 +1,33 @@
package Loadbars::Shared;
-my %PIDS : shared;
-my %AVGSTATS : shared;
-my %CPUSTATS : shared;
-my %MEMSTATS : shared;
-my %MEMSTATS_HAS : 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
-my %C : shared;
+our %C : shared;
# Global configuration hash for internal settings (not configurable)
-my %I : shared;
+our %I : shared;
# Setting defaults
%C = (