Skip to content

Commit

Permalink
improve ucd memory
Browse files Browse the repository at this point in the history
  • Loading branch information
lausser committed Dec 12, 2018
1 parent 3a997ae commit 0615380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins-scripts/Classes/UCDMIB/Components/SwapSubsystem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ sub init {
eval {
$self->{swap_usage} = 100 - ($self->{memAvailSwap} * 100 / $self->{memTotalSwap});
};
# exception if memTotalSwap = 0, which means that no swap partition/device
# was configured at all
}

sub check {
Expand Down

0 comments on commit 0615380

Please sign in to comment.