summaryrefslogtreecommitdiff
path: root/Loadbars/Shared.pm
blob: 0b7a16d0d528a994b1d52bc22865a51011c3db72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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,
);