Skip to content

Commit

Permalink
A bit of memory pressure on stats
Browse files Browse the repository at this point in the history
  • Loading branch information
majora2007 committed Dec 8, 2024
1 parent fffc21a commit e41eddb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions API/Services/Tasks/StatsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ private async Task<ServerInfoV3Dto> GetStatV3Payload()
dto.MaxSeriesInALibrary = await MaxSeriesInAnyLibrary();
dto.MaxVolumesInASeries = await MaxVolumesInASeries();
dto.MaxChaptersInASeries = await MaxChaptersInASeries();
dto.TotalFiles = await _unitOfWork.LibraryRepository.GetTotalFiles();
dto.TotalGenres = await _unitOfWork.GenreRepository.GetCountAsync();
dto.TotalPeople = await _unitOfWork.PersonRepository.GetCountAsync();
dto.TotalSeries = await _unitOfWork.SeriesRepository.GetCountAsync();
dto.TotalLibraries = (await _unitOfWork.LibraryRepository.GetLibrariesAsync()).Count();
dto.NumberOfCollections = (await _unitOfWork.CollectionTagRepository.GetAllCollectionsAsync()).Count();
dto.NumberOfReadingLists = await _unitOfWork.ReadingListRepository.Count();
dto.TotalFiles = await _context.MangaFile.CountAsync();
dto.TotalGenres = await _context.Genre.CountAsync();
dto.TotalPeople = await _context.Person.CountAsync();
dto.TotalSeries = await _context.Series.CountAsync();
dto.TotalLibraries = await _context.Library.CountAsync();
dto.NumberOfCollections = await _context.AppUserCollection.CountAsync();
dto.NumberOfReadingLists = await _context.ReadingList.CountAsync();

try
{
Expand Down

0 comments on commit e41eddb

Please sign in to comment.