catch SigarException only
This commit is contained in:
parent
02464e7cff
commit
1f71614819
|
@ -21,7 +21,7 @@ public class Df {
|
||||||
avail = usage.Avail;
|
avail = usage.Avail;
|
||||||
total = usage.Total;
|
total = usage.Total;
|
||||||
pct = (ulong)(usage.UsePercent * 100);
|
pct = (ulong)(usage.UsePercent * 100);
|
||||||
} catch (ApplicationException) {
|
} catch (SigarException) {
|
||||||
used = avail = total = pct = 0;
|
used = avail = total = pct = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class Ifconfig {
|
||||||
" " +
|
" " +
|
||||||
"TX bytes:" + txBytes +
|
"TX bytes:" + txBytes +
|
||||||
" (" + Sigar.FormatSize(txBytes) + ")");
|
" (" + Sigar.FormatSize(txBytes) + ")");
|
||||||
} catch { }
|
} catch (SigarException) { }
|
||||||
|
|
||||||
println("");
|
println("");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue