Parsing a timeout value (specified in milliseconds) into an internal timeout value measured in timer ticks is a common operation. Provide a parse_timeout() value to carry out this conversion automatically. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
30 | 30 |
|
31 | 31 |
|
32 | 32 |
|
33 |
|
|
33 | 34 |
|
34 | 35 |
|
35 | 36 |
|
|
||
95 | 96 |
|
96 | 97 |
|
97 | 98 |
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
98 | 120 |
|
99 | 121 |
|
100 | 122 |
|
|
||
194 | 194 |
|
195 | 195 |
|
196 | 196 |
|
197 |
|
|
197 |
|
|
198 | 198 |
|
199 | 199 |
|
200 | 200 |
|
|
||
208 | 208 |
|
209 | 209 |
|
210 | 210 |
|
211 |
|
|
211 |
|
|
212 | 212 |
|
213 | 213 |
|
214 | 214 |
|
|
||
27 | 27 |
|
28 | 28 |
|
29 | 29 |
|
30 |
|
|
30 | 31 |
|
31 | 32 |
|
32 | 33 |
|
|
||
39 | 40 |
|
40 | 41 |
|
41 | 42 |
|
42 |
|
|
43 |
|
|
43 | 44 |
|
44 | 45 |
|
45 | 46 |
|
46 | 47 |
|
47 | 48 |
|
48 | 49 |
|
49 |
|
|
50 |
|
|
50 | 51 |
|
51 | 52 |
|
52 | 53 |
|
|
||
54 | 55 |
|
55 | 56 |
|
56 | 57 |
|
57 |
|
|
58 |
|
|
58 | 59 |
|
59 | 60 |
|
60 | 61 |
|
|
||
24 | 24 |
|
25 | 25 |
|
26 | 26 |
|
27 |
|
|
28 | 27 |
|
29 | 28 |
|
30 | 29 |
|
|
||
36 | 35 |
|
37 | 36 |
|
38 | 37 |
|
39 |
|
|
38 |
|
|
40 | 39 |
|
41 | 40 |
|
42 | 41 |
|
43 | 42 |
|
44 | 43 |
|
45 |
|
|
44 |
|
|
46 | 45 |
|
47 | 46 |
|
48 | 47 |
|
|
||
59 | 58 |
|
60 | 59 |
|
61 | 60 |
|
62 |
|
|
63 | 61 |
|
64 | 62 |
|
65 | 63 |
|
|
||
67 | 65 |
|
68 | 66 |
|
69 | 67 |
|
70 |
|
|
71 |
|
|
68 |
|
|
72 | 69 |
|
73 | 70 |
|
74 | 71 |
|
|
||
303 | 303 |
|
304 | 304 |
|
305 | 305 |
|
306 |
|
|
306 |
|
|
307 | 307 |
|
308 | 308 |
|
309 | 309 |
|
310 |
|
|
310 |
|
|
311 | 311 |
|
312 | 312 |
|
313 | 313 |
|
|
||
318 | 318 |
|
319 | 319 |
|
320 | 320 |
|
321 |
|
|
321 |
|
|
322 | 322 |
|
323 | 323 |
|
324 | 324 |
|
|
||
361 | 361 |
|
362 | 362 |
|
363 | 363 |
|
364 |
|
|
364 |
|
|
365 | 365 |
|
366 | 366 |
|
367 | 367 |
|
|
||
369 | 369 |
|
370 | 370 |
|
371 | 371 |
|
372 |
|
|
372 |
|
|
373 | 373 |
|
374 | 374 |
|
375 | 375 |
|
|
||
43 | 43 |
|
44 | 44 |
|
45 | 45 |
|
46 |
|
|
46 |
|
|
47 | 47 |
|
48 | 48 |
|
49 | 49 |
|
|
||
126 | 126 |
|
127 | 127 |
|
128 | 128 |
|
129 |
|
|
129 | 130 |
|
130 | 131 |
|
131 | 132 |
|
|
||
11 | 11 |
|
12 | 12 |
|
13 | 13 |
|
14 |
|
|
14 |
|
|
15 | 15 |
|
16 | 16 |
|
|
||
9 | 9 |
|
10 | 10 |
|
11 | 11 |
|
12 |
|
|
12 |
|
|
13 | 13 |
|
14 | 14 |
|
|
||
56 | 56 |
|
57 | 57 |
|
58 | 58 |
|
59 |
|
|
59 |
|
|
60 | 60 |
|
61 | 61 |
|
62 | 62 |
|
63 |
|
|
63 |
|
|
64 | 64 |
|
65 | 65 |
|
66 | 66 |
|
67 |
|
|
68 |
|
|
67 |
|
|
69 | 68 |
|
70 | 69 |
|
71 | 70 |
|
|
||
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
31 |
|
|
32 | 31 |
|
33 | 32 |
|
34 | 33 |
|
35 | 34 |
|
36 | 35 |
|
37 | 36 |
|
38 |
|
|
37 |
|
|
39 | 38 |
|
40 | 39 |
|
41 | 40 |
|
42 | 41 |
|
43 | 42 |
|
44 | 43 |
|
45 |
|
|
44 |
|
|
46 | 45 |
|
47 | 46 |
|
48 | 47 |
|
49 | 48 |
|
50 | 49 |
|
51 | 50 |
|
52 |
|
|
51 |
|
|
53 | 52 |
|
54 | 53 |
|
55 | 54 |
|