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