Subject: | save not reducing RRD file size |
save() function must reduce file size after writing content.
Save operation produces unusable RRD file when saved content is shorter than original file.
@@ -1612,6 +1610,7 @@ sub save {
}
}
# done
+ truncate($fd, tell($fd));
# and exit
return 1;