From 7e4f4f188708255a1c03c43c4ab660e54600dd08 Mon Sep 17 00:00:00 2001 From: came-here-to-learn <131591175+came-here-to-learn@users.noreply.github.com> Date: Sun, 23 Apr 2023 13:34:39 +0200 Subject: [PATCH 1/4] 5 requests per every 70 seconds, instead of 45 requests every 60 Since GGG introduce aggressive throttling, as a temp solution maybe this can be limited to 5 tabs checked every 70 seconds. Better would be a dialog window to change both the number of tabs checked AND the time between each check --- src/itemsmanagerworker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/itemsmanagerworker.h b/src/itemsmanagerworker.h index 6a8d178a6..1cf35036f 100644 --- a/src/itemsmanagerworker.h +++ b/src/itemsmanagerworker.h @@ -36,8 +36,8 @@ class QTimer; class BuyoutManager; class TabCache; -const int kThrottleRequests = 45; -const int kThrottleSleep = 60; +const int kThrottleRequests = 5; +const int kThrottleSleep = 70; const int kMaxCacheSize = (1000*1024*1024); // 1GB struct ItemsRequest { From a9c316856ff2d988a3ed184c829804b5572a6627 Mon Sep 17 00:00:00 2001 From: came-here-to-learn <131591175+came-here-to-learn@users.noreply.github.com> Date: Sun, 23 Apr 2023 13:59:26 +0200 Subject: [PATCH 2/4] Create msbuild.yml --- .github/workflows/msbuild.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 000000000..4ff5521ad --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,44 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: MSBuild + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + # Path to the solution file relative to the root of the project. + SOLUTION_FILE_PATH: . + + # Configuration type to build. + # You can convert this to a build matrix if you need coverage of multiple configuration types. + # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + BUILD_CONFIGURATION: Release + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Restore NuGet packages + working-directory: ${{env.GITHUB_WORKSPACE}} + run: nuget restore ${{env.SOLUTION_FILE_PATH}} + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + # Add additional options to the MSBuild command line here (like platform or verbosity level). + # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} From 0c628d02761d54f05ee3a8c5292d3fd1416eaafc Mon Sep 17 00:00:00 2001 From: came-here-to-learn <131591175+came-here-to-learn@users.noreply.github.com> Date: Sun, 23 Apr 2023 14:00:22 +0200 Subject: [PATCH 3/4] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 000000000..a383a5241 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,23 @@ +name: C/C++ CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: configure + run: ./configure + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck From c6d563fcb069c00c4d8d12f850d403b74a61b622 Mon Sep 17 00:00:00 2001 From: came-here-to-learn <131591175+came-here-to-learn@users.noreply.github.com> Date: Sun, 23 Apr 2023 14:36:00 +0200 Subject: [PATCH 4/4] Delete .github directory --- .github/workflows/c-cpp.yml | 23 ------------------ .github/workflows/msbuild.yml | 44 ----------------------------------- 2 files changed, 67 deletions(-) delete mode 100644 .github/workflows/c-cpp.yml delete mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml deleted file mode 100644 index a383a5241..000000000 --- a/.github/workflows/c-cpp.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: C/C++ CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: configure - run: ./configure - - name: make - run: make - - name: make check - run: make check - - name: make distcheck - run: make distcheck diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml deleted file mode 100644 index 4ff5521ad..000000000 --- a/.github/workflows/msbuild.yml +++ /dev/null @@ -1,44 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: MSBuild - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -env: - # Path to the solution file relative to the root of the project. - SOLUTION_FILE_PATH: . - - # Configuration type to build. - # You can convert this to a build matrix if you need coverage of multiple configuration types. - # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - BUILD_CONFIGURATION: Release - -permissions: - contents: read - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v3 - - - name: Add MSBuild to PATH - uses: microsoft/setup-msbuild@v1.0.2 - - - name: Restore NuGet packages - working-directory: ${{env.GITHUB_WORKSPACE}} - run: nuget restore ${{env.SOLUTION_FILE_PATH}} - - - name: Build - working-directory: ${{env.GITHUB_WORKSPACE}} - # Add additional options to the MSBuild command line here (like platform or verbosity level). - # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference - run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}