[Pacemaker] [Question] About the rotation of the pe-file.

renayama19661014 at ybb.ne.jp renayama19661014 at ybb.ne.jp
Thu Jan 5 01:35:34 UTC 2012


Hi All,

Stored pe files usually begin with the zeroth.
However, when I make pe-input-series-max=2, the rotation is carried out between 1 and 2, but is not performed with 0.

Is it specifications that is not rotated with 0?

I confirmed that 0 was not used by the next calculation.

void
write_last_sequence(
	const char *directory, const char *series, int sequence, int max)
{
	int rc = 0;
	int len = 36;
	FILE *file_strm = NULL;
	char *series_file = NULL;

	CRM_CHECK(directory  != NULL, return);
	CRM_CHECK(series != NULL, return);

	if(max == 0) {
		return;
	}
	while(max > 0 && sequence > max) {
		sequence -= max;
	}
(snip)


Best Regards,
Hideo Yamauchi.





More information about the Pacemaker mailing list