use FSDEV_ID for devices

This commit is contained in:
Doug MacEachern 2007-11-04 18:21:56 +00:00
parent 079759ca57
commit c97cfd68d7
1 changed files with 1 additions and 6 deletions

View File

@ -1215,12 +1215,7 @@ static iodev_t *get_fsdev(sigar_t *sigar,
return NULL;
}
if (is_dev) {
id = sb.st_rdev;
}
else {
id = SIGAR_FSDEV_ID(sb);
}
entry = sigar_cache_get(sigar->fsdev, id);