Skip to content

Commit

Permalink
started statistcs
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Oct 12, 2024
1 parent 6997ab6 commit 8d184c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
nameCountGraphic = nameCount.Take(10).ToArray();
}

var stats = arr.Statistics();

int maxPage = nameCount.Length <10? 10: nameCount.Length;
int nrSplit = maxPage > 100 ? 100 : 10;
Expand Down
2 changes: 1 addition & 1 deletion src/NetPackageAnalyzer/NetPackageAnalyzerObjects/many.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public record NamePerCount(string Name, long Count)
}
public record NamePerCountArray(NamePerCount[]? NamePerCounts,bool Descending)
{
public Statistics<long> Data()
public Statistics<long> Statistics()
{
return new Statistics<long>(NamePerCounts?.Select(it => it.Count).ToArray() ?? []);
}
Expand Down

0 comments on commit 8d184c5

Please sign in to comment.