Skip to main content

Explanation

Consider the following grouped events:

  • Time=1: Checkout licCount=1 Group handle=101
  • Time=2: Checkout licCount=2 Group handle=102
  • Time=3: Checkin licCount=2 Group handle=102
  • Time=4: Checkout licCount=3 Group handle=103
  • Time=5: Checkin licCount=1 Group handle=101
  • Time=6: Checkin licCount=3 Group handle=103

This can be visualized like so:

Checkin time and counts

The part that were causing confusion were the checkouts at 2 and 4.

At 2, we were seeing a checkout for 2, and thinking "usage should increase by 2", however, since one license is shared, it was actually only incrementing by 1.

At 4, we see a checkout, and had thought "usage should increase by 3", but again because one license is shared, we only see usage of 2 at that point.

So, even though we have three checkouts for 1,2, and 3 licenses, we only see a total usage of 4, not 6.

Ie: we count usage like this

Checkout usage correct

Not like this:

Checkout usage correct incorrect