Skip to main contentModule history
Source - HistoryEntry
- format_comparison
- Format historical comparison as a string for display.
Returns None if insufficient history data.
- get_averages
- Compute average download and upload speeds from history (last 20 entries).
Returns (avg_dl_mbps, avg_ul_mbps) or None if insufficient data.
- get_recent_sparkline
- Get recent download/upload speeds as paired tuples for sparkline display.
Returns up to the last 7 entries as
(date_label, dl_mbps, ul_mbps). - load_history
- Load all test history from the history file.
- print_history
- Print formatted test history to stdout.
- save_result
- Save a test result to the history file.
- sparkline
- Render a sparkline from a slice of numeric values using Unicode block chars.