make ptgen print the end offset of the last partition as well