# Did line count "algorithm" change between 8.9 LTS and 9.9 LTS?

**URL:** <https://community.sonarsource.com/t/did-line-count-algorithm-change-between-8-9-lts-and-9-9-lts/84041>\
**Category:** SonarQube Server / Community Build\
**Created:** [February 15, 2023, 7:54am UTC](https://community.sonarsource.com/t/did-line-count-algorithm-change-between-8-9-lts-and-9-9-lts/84041 "2023-02-15T07:54:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinstenhoff](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/martinstenhoff/32/42028_2.png) [@martinstenhoff](https://community.sonarsource.com/u/martinstenhoff)\
**Post date:** [February 15, 2023, 7:54am UTC](https://community.sonarsource.com/t/did-line-count-algorithm-change-between-8-9-lts-and-9-9-lts/84041/1 "2023-02-15T07:54:51Z")

</div>

We were running SonarQube Developer 8.9 LTS on Ubuntu with a 100K line license. We were close to the “notification threshold” of 20,000 when I upgraded to 9.9 LTS.

After upgrading to 9.9 LTS we exceeded the 100K line license, but if I sum all the “lines” for all projects listed (and I can see all projects) they sum to 77,591 which seem to match with what I saw with 8.9.

Is the “SonarQube is counting lines of the biggest branch” something new in 9.x or what else could have caused the line count to jump immediately after upgrade?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [February 15, 2023, 6:09pm UTC](https://community.sonarsource.com/t/did-line-count-algorithm-change-between-8-9-lts-and-9-9-lts/84041/2 "2023-02-15T18:09:05Z")

</div>

Hi,

Welcome to the community!

> [@martinstenhoff](#):
>
> Is the “SonarQube is counting lines of the biggest branch” something new in 9.x

No. It’s been this way for quite some time.

> [@martinstenhoff](#):
>
> what else could have caused the line count to jump immediately after upgrade?

Was this immediately after upgrade, or after re-analysis?

&nbsp;  
Ann
