(self)
| 178 | return 0.0 |
| 179 | |
| 180 | def format_eta(self) -> str: |
| 181 | if self.eta_known: |
| 182 | t = int(self.eta) |
| 183 | seconds = t % 60 |
| 184 | t //= 60 |
| 185 | minutes = t % 60 |
| 186 | t //= 60 |
| 187 | hours = t % 24 |
| 188 | t //= 24 |
| 189 | if t > 0: |
| 190 | return "{d}{day_label} {h:02}:{m:02}:{s:02}".format( |
| 191 | d=t, |
| 192 | day_label=_("d"), |
| 193 | h=hours, |
| 194 | m=minutes, |
| 195 | s=seconds, |
| 196 | ) |
| 197 | else: |
| 198 | return f"{hours:02}:{minutes:02}:{seconds:02}" |
| 199 | return "" |
| 200 | |
| 201 | def format_pos(self) -> str: |
| 202 | pos = str(self.pos) |
no outgoing calls