Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix metrics error when data is less than selected date #4382

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

vishwamartur
Copy link

Related to #4309

Fix the 'sql: Scan error on column index 5, name "usedPercent": converting NULL to float64 is unsupported' error on the metrics page.

  • Update the getMemoryMetrics method in app/Models/Server.php to handle NULL values for the "usedPercent" field by setting them to 0.0.
  • Add a check for NULL values in the getMemoryMetrics method before converting to float64.

Related to coollabsio#4309

Fix the 'sql: Scan error on column index 5, name "usedPercent": converting NULL to float64 is unsupported' error on the metrics page.

* Update the `getMemoryMetrics` method in `app/Models/Server.php` to handle NULL values for the "usedPercent" field by setting them to 0.0.
* Add a check for NULL values in the `getMemoryMetrics` method before converting to float64.
@peaklabs-dev peaklabs-dev changed the base branch from main to next December 2, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant