- if (acctp == NULL)
- return;
- (void)VFS_STATFS(acctp->v_mount, &sb, (struct proc *)0);
- if (sb.f_bavail <= acctsuspend * sb.f_blocks / 100) {
- savacctp = acctp;
- acctp = NULL;
- log(LOG_NOTICE, "Accounting suspended\n");
- }
- timeout(acctwatch, (caddr_t)resettime, hzto(resettime));