Skip to content

[Question] Packet loss rounding (cosmetic issue) #2660

@bondskin

Description

@bondskin

Welcome!

  • I have read the documentation and my problem was not listed in the help section.
  • I have searched open and closed issues and my problem was not mentioned before.
  • I have verified I am using the latest version available. You can check the latest release here.
  • I agree to follow this project's Code of Conduct.

What did you do?

linuxserver/docker-speedtest-tracker#70 (comment)

Package loss figure is overly scientific
"
Packet Loss: 1.2396694214876%
"
in the Apprise notification

Expected Behavior

max two digits, e.g. "1.24%"

Steps to Reproduce

running speedtest and checking results

Deployment Environment

Docker Compose

What is your environment & configuration?

speedtest-gluetun:
image: lscr.io/linuxserver/speedtest-tracker:latest
container_name: speedtest-gluetun
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
- APP_KEY="base64:"
- APP_URL="http://192.168.2.11:8981"
- DB_CONNECTION=sqlite
- SPEEDTEST_SCHEDULE="15 4 * * *"
- SPEEDTEST_INTERNET_CHECK_HOSTNAME="google.com"
- DB_HOST= #optional
- DB_PORT= #optional
- DB_DATABASE= #optional
- DB_USERNAME= #optional
- DB_PASSWORD= #optional
- DISPLAY_TIMEZONE=Europe/Berlin #optional
- APP_TIMEZONE=Europe/Berlin
- PRUNE_RESULTS_OLDER_THAN=90 #optional
volumes:
- /home/mcp/docker/speedtest/data-gluetun:/config
tmpfs:
- /run:exec,rw,size=64m
- /tmp:rw,size=128m
- /config/www/storage/framework/cache:rw,size=64m
- /config/www/storage/framework/sessions:rw,size=64m
network_mode: "container:gluetun"
depends_on:
gluetun:
condition: service_healthy

Application Information

{"environment":{"application_name":"Speedtest Tracker","laravel_version":"12.41.1","php_version":"8.4.16","composer_version":"2.9.4","environment":"production","debug_mode":false,"url":"192.168.2.11:8981","maintenance_mode":false,"timezone":"Europe\/Berlin","locale":"en"},"cache":{"config":true,"events":true,"routes":true,"views":true},"drivers":{"broadcasting":"null","cache":"database","database":"sqlite","logs":"stderr","mail":"log","queue":"database","session":"database"},"storage":{"\/app\/www\/public\/storage":false},"filament":{"version":"v4.1.0","packages":"filament, forms, notifications, support, tables, actions, infolists, schemas, widgets","views":"NOT PUBLISHED","blade_icons":"CACHED","panel_components":"CACHED"},"livewire":{"livewire":"v3.7.1"},"speedtest_tracker":{"version":"v1.13.5"}}

What browser(s) are you seeing the problem on?

Safari

Logs

[2026-01-25 04:15:04] production.DEBUG: Pinged hostname {"host":"google.com","data":{"success":true,"error":null,"host":"google.com","packet_loss_percentage":0,"packets_transmitted":1,"packets_received":1,"options":{"timeout_in_seconds":5,"interval":1.0,"packet_size_in_bytes":56,"ttl":64},"timings":{"minimum_time_in_ms":18.51,"maximum_time_in_ms":18.51,"average_time_in_ms":18.51,"standard_deviation_time_in_ms":0.0}}} 
[2026-01-25 04:15:25] production.INFO: Apprise notification sent {"channel":"mailto://xxx.org:25?to=xxx&from=xxx","instance":"http://192.168.2.11:8095/notify"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reviewA maintainer needs to look at this issue stillquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions