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

2012-01-15 Thread renayama19661014
Hi Andrew, Hi Lars, > Its in my private tree so far: > https://github.com/beekhof/pacemaker/commit/bfbb73c > > It will make its way to clusterlabs when I merge next. All right! Many Thanks! Hideo Yamauchi. --- On Mon, 2012/1/16, Andrew Beekhof wrote: > On Mon, Jan 16, 2012 at 11:48 AM, 

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

2012-01-15 Thread Andrew Beekhof
On Mon, Jan 16, 2012 at 11:48 AM, wrote: > Hi Andrew, > Hi Lars, > >> >> If you want it to be between [0, max-1], >> >> obviously that should be >> >>         while(max > 0 && sequence >= max) { >> >>                 sequence -= max; >> >>         } > > The rotation was carried out definitely fro

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

2012-01-15 Thread renayama19661014
Hi Andrew, Hi Lars, > >> If you want it to be between [0, max-1], > >> obviously that should be > >> while(max > 0 && sequence >= max) { > >> sequence -= max; > >> } The rotation was carried out definitely from 0 to max-1. > >> Though I wonder why not simply: > >

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

2012-01-15 Thread Andrew Beekhof
On Mon, Jan 16, 2012 at 10:56 AM, wrote: > Hi Lars, > Hi Andrew, > >> If you want it to be between [0, max-1], >> obviously that should be >>         while(max > 0 && sequence >= max) { >>                 sequence -= max; >>         } > > Thanks!!I try it. > >> Though I wonder why not simply: >>

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

2012-01-15 Thread renayama19661014
Hi Lars, Hi Andrew, > If you want it to be between [0, max-1], > obviously that should be > while(max > 0 && sequence >= max) { > sequence -= max; > } Thanks!!I try it. > Though I wonder why not simply: > if (max == 0) > return; > if (sequence > ma

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

2012-01-14 Thread Lars Ellenberg
On Fri, Jan 06, 2012 at 10:12:06AM +0900, renayama19661...@ybb.ne.jp wrote: > Hi Andrew, > > Thank you for comments. > > > Could you try with: > > > > while(max >= 0 && sequence > max) { > > > > The problem is not settled by this correction. > The rotation is carried out with a value e

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

2012-01-05 Thread renayama19661014
Hi Andrew, Thank you for comments. > Could you try with: > > while(max >= 0 && sequence > max) { > The problem is not settled by this correction. The rotation is carried out with a value except 0. Best Regards, Hideo Yamauchi. --- On Fri, 2012/1/6, Andrew Beekhof wrote: > On Thu

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

2012-01-05 Thread Andrew Beekhof
On Thu, Jan 5, 2012 at 12:35 PM, wrote: > 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

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

2012-01-04 Thread renayama19661014
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