<h4 jhiTranslate="metrics.jvm.threads.title">Threads</h4>

<span><span jhiTranslate="metrics.jvm.threads.runnable">Runnable</span> {{ threadStats.threadDumpRunnable }}</span>

<ngb-progressbar
  [value]="threadStats.threadDumpRunnable"
  [max]="threadStats.threadDumpAll"
  [striped]="true"
  [animated]="false"
  type="success"
>
  <span>{{ (threadStats.threadDumpRunnable * 100) / threadStats.threadDumpAll | number: '1.0-0' }}%</span>
</ngb-progressbar>

<span><span jhiTranslate="metrics.jvm.threads.timedwaiting">Tempo de espera</span> ({{ threadStats.threadDumpTimedWaiting }})</span>

<ngb-progressbar
  [value]="threadStats.threadDumpTimedWaiting"
  [max]="threadStats.threadDumpAll"
  [striped]="true"
  [animated]="false"
  type="warning"
>
  <span>{{ (threadStats.threadDumpTimedWaiting * 100) / threadStats.threadDumpAll | number: '1.0-0' }}%</span>
</ngb-progressbar>

<span><span jhiTranslate="metrics.jvm.threads.waiting">Aguardando</span> ({{ threadStats.threadDumpWaiting }})</span>

<ngb-progressbar
  [value]="threadStats.threadDumpWaiting"
  [max]="threadStats.threadDumpAll"
  [striped]="true"
  [animated]="false"
  type="warning"
>
  <span>{{ (threadStats.threadDumpWaiting * 100) / threadStats.threadDumpAll | number: '1.0-0' }}%</span>
</ngb-progressbar>

<span><span jhiTranslate="metrics.jvm.threads.blocked">Bloqueado</span> ({{ threadStats.threadDumpBlocked }})</span>

<ngb-progressbar
  [value]="threadStats.threadDumpBlocked"
  [max]="threadStats.threadDumpAll"
  [striped]="true"
  [animated]="false"
  type="success"
>
  <span>{{ (threadStats.threadDumpBlocked * 100) / threadStats.threadDumpAll | number: '1.0-0' }}%</span>
</ngb-progressbar>

<div>Total: {{ threadStats.threadDumpAll }}</div>

<button class="hand btn btn-primary btn-sm" (click)="open()" data-toggle="modal" data-target="#threadDump">
  <span>Expand</span>
</button>
