[SIGAR-72] close /proc/stat fp
This commit is contained in:
parent
0883efd92c
commit
cec8bcc400
|
@ -141,6 +141,8 @@ static int sigar_boot_time_get(sigar_t *sigar)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
/* should never happen */
|
/* should never happen */
|
||||||
sigar->boot_time = time(NULL);
|
sigar->boot_time = time(NULL);
|
||||||
|
|
Loading…
Reference in New Issue