Fix my yesterday's brain-o: don't account for the kilobytes twice.
This commit is contained in:
parent
11fcd0ba76
commit
8df9b2ce24
@ -553,7 +553,7 @@ check_space()
|
||||
syslog(LOG_ERR, "%s: %m", tkernel);
|
||||
exit(1);
|
||||
}
|
||||
kernelsize = (st.st_blocks * S_BLKSIZE) / 1024;
|
||||
kernelsize = st.st_blocks * S_BLKSIZE;
|
||||
|
||||
if (statfs(dirname, &fsbuf) < 0) {
|
||||
syslog(LOG_ERR, "%s: %m", dirname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user