Skip to content

[BUG] / cosmetic / rounding issue #70

@bondskin

Description

@bondskin

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

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

Environment

- OS: debian trixie
- How docker service was installed: apt

CPU architecture

x86-64

Docker creation

speedtest-gluetun:
    image: lscr.io/linuxserver/speedtest-tracker:latest
    container_name: speedtest-gluetun
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - APP_KEY="base64:xx"
      - 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

Container 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

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions