mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Update boinc_projs
This commit is contained in:
parent
e6178c94ff
commit
1568bf67ea
@ -24,6 +24,10 @@
|
|||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
#
|
#
|
||||||
|
# Revision 1.2 2016/10/04 Paul Saunders
|
||||||
|
# BoincCmd now translates states into words, so consider a "downloaded, scheduled, EXECUTING" task
|
||||||
|
# to be equivalent to a "2, 2, 1" task
|
||||||
|
# Really, this should be ported to use the proper RPC, rather than parsing boinccmd's output.
|
||||||
# Revision 1.1 2011/03/22 Paul Saunders
|
# Revision 1.1 2011/03/22 Paul Saunders
|
||||||
# Update for BOINC 6.12
|
# Update for BOINC 6.12
|
||||||
# Add colours from http://boinc.netsoft-online.com/e107_plugins/forum/forum_viewtopic.php?3
|
# Add colours from http://boinc.netsoft-online.com/e107_plugins/forum/forum_viewtopic.php?3
|
||||||
@ -145,7 +149,8 @@ for my $rslt_info (@rsltInfos) {
|
|||||||
my @acttask = grep /^\s+active_task_state: /,@lines;
|
my @acttask = grep /^\s+active_task_state: /,@lines;
|
||||||
my $acttask = $acttask[0];
|
my $acttask = $acttask[0];
|
||||||
$acttask =~ s/^\s+active_task_state: //;
|
$acttask =~ s/^\s+active_task_state: //;
|
||||||
if ( ($schedstat eq "2") && ($state eq "2") && ($acttask eq "1") ) {
|
if (( ($schedstat eq "2") && ($state eq "2") && ($acttask eq "1") ) ||
|
||||||
|
( ($schedstate eq "scheduled") && ($state eq "downloaded") && ($acttask eq "EXECUTING") )) {
|
||||||
# This is running task
|
# This is running task
|
||||||
$projects{$url}->{prj_running} += 1;
|
$projects{$url}->{prj_running} += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user