mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 03:25:54 +02:00
graphs: Fix rendering CPU graphs after number of cores decreased
Fixes: #12193 - cpu graphs cannot created if smt is disabled Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
85de90ef9d
commit
6fc3625512
@@ -172,7 +172,7 @@ sub updatecpugraph {
|
||||
}
|
||||
|
||||
for(my $i = 2; $i < $cpucount; $i++) {
|
||||
$addstring .= "+,";
|
||||
$addstring .= "ADDNAN,";
|
||||
}
|
||||
|
||||
if ( $cpucount > 1){
|
||||
@@ -190,7 +190,7 @@ sub updatecpugraph {
|
||||
push(@command,$nice,$interrupt,$steal,$user,$system,$idle,$iowait,$irq);
|
||||
}
|
||||
|
||||
push(@command,"CDEF:total=user,system,idle,iowait,irq,nice,interrupt,steal,+,+,+,+,+,+,+"
|
||||
push(@command,"CDEF:total=user,system,idle,iowait,irq,nice,interrupt,steal,ADDNAN,ADDNAN,ADDNAN,ADDNAN,ADDNAN,ADDNAN,ADDNAN"
|
||||
,"CDEF:userpct=100,user,total,/,*"
|
||||
,"CDEF:nicepct=100,nice,total,/,*"
|
||||
,"CDEF:interruptpct=100,interrupt,total,/,*"
|
||||
|
||||
Reference in New Issue
Block a user