understanding the sensor values in our samples

Linus Torvalds torvalds at linux-foundation.org
Thu Apr 28 11:34:06 PDT 2022


On Thu, Apr 28, 2022 at 10:30 AM Linus Torvalds
<torvalds at linux-foundation.org> wrote:
>
> In fact, we should probably fill in all the other 'index[]' entries
> too, but we never did, because [..]

Actually, the reason we never did is that we never expanded our sample
array past two sensors.

I thought we had, but we still have MAX_SENSORS being 2 (and a few sad
hard-coded twos in the code, for that matter).

So even if the code is (mostly) set up to handle more sensors, and
even though I at one point wanted to get rid of the sensor thing
entirely (and just make sensor numbers match cylinders), that never
actually happened.

And nobody seems to have noticed or cared, so I guess it's just as well.

              Linus


More information about the subsurface mailing list