Unverified Commit 39586b04 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Shellcheck

parent 7510f156
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -12,7 +12,8 @@ snore()

function checkNMI {

  local nmi=$(awk '/NMI/ {for (i=2; i<=NF; i++) if ($i ~ /^[0-9]+$/) {sum+=$i}} END {print sum}' /proc/interrupts)
  local nmi
  nmi=$(awk '/NMI/ {for (i=2; i<=NF; i++) if ($i ~ /^[0-9]+$/) {sum+=$i}} END {print sum}' /proc/interrupts)

  if [ "$nmi" != "" ] && [ "$nmi" -ne "0" ]; then