powertop creates temporary file in /tmp folder during calibration. Simply closing does not remove these files. Instead use unlink to remove the file.
diff --git a/src/calibrate/calibrate.cpp b/src/calibrate/calibrate.cpp index db368e0..1336c3f 100644 --- a/src/calibrate/calibrate.cpp +++ b/src/calibrate/calibrate.cpp @@ -242,7 +242,7 @@ static void *burn_disk(void *dummy) write(fd, buffer, 64*1024); fdatasync(fd); } - close(fd); + unlink(filename); return NULL; }
-- Thanks, -Meraj