Skip to content

Commit

Permalink
taskmanger v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
chinonso098 committed Oct 28, 2023
1 parent 37b300c commit 5f5d532
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/app/system-apps/taskmanager/taskmanager.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,19 @@
</figure>
</td>
<td>{{ process.getStatus}}</td>
<td style="text-align:right;">{{ process.getCpuUsage}}%</td>
<td style="text-align:right;">{{ process.getMemoryUsage}} MB</td>
<td style="text-align:right;">{{ process.getDiskUsage}} MB/s</td>
<td style="text-align:right;">{{ process.getNetworkUsage}} Mbps</td>
<td style="text-align:right;">{{ process.getProcessId}}</td>
<td [style]="process.getCpuUsage <= 5.0? 'text-align:right; background-color: orange;':
'text-align:right; background-color: orangered;'"
>{{ process.getCpuUsage}}%</td>
<td [style]="process.getMemoryUsage <= 5.0? 'text-align:right; background-color: orange;':
'text-align:right; background-color: orangered;'"
>{{ process.getMemoryUsage}} MB</td>
<td [style]="process.getDiskUsage <= 5.0? 'text-align:right; background-color: orange;':
'text-align:right; background-color: orangered;'"
>{{ process.getDiskUsage}} MB/s</td>
<td [style]="process.getNetworkUsage <= 5.0? 'text-align:right; background-color: orange;':
'text-align:right; background-color: orangered;'"
>{{ process.getNetworkUsage}} Mbps</td>
<td style="text-align:right">{{ process.getProcessId}}</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 5f5d532

Please sign in to comment.