catch SigarException only

This commit is contained in:
Doug MacEachern 2004-09-18 17:49:18 +00:00
parent 02464e7cff
commit 1f71614819
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -74,7 +74,7 @@ public class Ifconfig {
" " +
"TX bytes:" + txBytes +
" (" + Sigar.FormatSize(txBytes) + ")");
} catch { }
} catch (SigarException) { }
println("");
}