spectre.console/src/Spectre.Console
Patrik Svensson e280b82679 Fix dividing with infinity bug
When calculating the remaining time for a progress task,
we divide the value delta with the current speed.
If the speed is zero, then the resulting double will
be 'infinity' which will lead to TimeSpan.FromSeconds
throwing.

This commit fixes that bug by setting the speed to 1
if it's 0 when calculating the remaining time.

Closes #169
2020-12-17 00:43:47 +01:00
..
2020-11-22 03:09:42 +01:00
2020-12-17 00:43:47 +01:00
2020-12-04 10:19:09 +01:00
2020-12-09 00:07:02 +01:00
2020-11-19 12:24:04 +01:00
2020-07-21 12:03:41 +02:00
2020-10-01 23:05:02 +02:00
2020-12-04 07:29:48 +01:00
2020-10-07 11:57:28 +02:00
2020-09-18 16:11:51 +02:00
2020-07-21 12:03:41 +02:00
2020-11-19 12:24:04 +01:00
2020-08-03 23:30:47 +02:00
2020-10-07 17:33:05 +02:00
2020-09-18 16:11:51 +02:00
2020-09-09 08:43:48 +02:00
2020-12-04 07:29:48 +01:00
2020-11-19 12:24:04 +01:00
2020-09-09 08:43:48 +02:00
2020-10-01 14:43:08 +02:00
2020-10-16 23:02:53 +02:00
2020-09-09 08:43:48 +02:00
2020-11-19 12:24:04 +01:00
2020-09-09 08:43:48 +02:00
2020-09-09 08:43:48 +02:00
2020-09-09 08:43:48 +02:00
2020-09-17 10:58:50 +02:00
2020-12-04 07:29:48 +01:00
2020-11-22 03:09:42 +01:00
2020-11-11 15:28:32 +01:00
2020-11-19 12:24:04 +01:00
2020-11-19 12:24:04 +01:00