catch SigarException only
This commit is contained in:
1 parent
02464e7cff
commit
1f71614819
2 files changed
+2
-2
No files matched your search
@@ -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("");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user