mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Update boinc_projs
This commit is contained in:
parent
e6178c94ff
commit
1568bf67ea
1 changed files with 6 additions and 1 deletions
|
@ -24,6 +24,10 @@
|
|||
#
|
||||
# $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
|
||||
# Update for BOINC 6.12
|
||||
# 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 = $acttask[0];
|
||||
$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
|
||||
$projects{$url}->{prj_running} += 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue