~ubuntu-branches/ubuntu/trusty/torrus/trusty-proposed

« back to all changes in this revision

Viewing changes to perllib/Torrus/SiteConfig.pm

  • Committer: Bazaar Package Importer
  • Author(s): Marc Haber
  • Date: 2008-03-08 00:18:46 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080308001846-q3pinwcswe3uf7wj
Tags: 1.0.6-2
Add torrus-common.NEWS advising people to recompile their
configuration upon upgrading to torrus 1.0.6.
Thanks to Joerg Dorchain. Closes: #469274

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#  along with this program; if not, write to the Free Software
15
15
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
16
16
 
17
 
# $Id: SiteConfig.pm,v 1.5 2005/10/24 16:20:47 ssinyagin Exp $
 
17
# $Id: SiteConfig.pm,v 1.6 2007/06/16 16:54:08 ssinyagin Exp $
18
18
# Stanislav Sinyagin <ssinyagin@yahoo.com>
19
19
 
20
20
## %Torrus::Global::treeConfig manipulation
279
279
sub mayRunCollector
280
280
{
281
281
    my $tree = shift;
282
 
    return $Torrus::Global::treeConfig{$tree}{'run'}{'collector'};
 
282
    my $run = $Torrus::Global::treeConfig{$tree}{'run'}{'collector'};
 
283
    return( defined($run) and $run > 0 );   
283
284
}
284
285
 
 
286
sub collectorInstances
 
287
{
 
288
    my $tree = shift;
 
289
    my $run = $Torrus::Global::treeConfig{$tree}{'run'}{'collector'};
 
290
    return( (defined($run) and $run > 1) ? int($run) : 1 ); 
 
291
}
285
292
 
286
293
sub mayRunMonitor
287
294
{