Convert delay parameter back to ms when reporting to user.
PR: 156838 MFC after: 1 week
This commit is contained in:
parent
cc734417b3
commit
318b735cc3
@ -624,7 +624,7 @@ dn_c_copy_pipe(struct dn_schk *s, struct copy_args *a, int nq)
|
|||||||
/* These 4 field are the same in pipe7 and pipe8 */
|
/* These 4 field are the same in pipe7 and pipe8 */
|
||||||
pipe7->next.sle_next = (struct dn_pipe7 *)DN_IS_PIPE;
|
pipe7->next.sle_next = (struct dn_pipe7 *)DN_IS_PIPE;
|
||||||
pipe7->bandwidth = l->bandwidth;
|
pipe7->bandwidth = l->bandwidth;
|
||||||
pipe7->delay = l->delay;
|
pipe7->delay = l->delay * 1000 / hz;
|
||||||
pipe7->pipe_nr = l->link_nr - DN_MAX_ID;
|
pipe7->pipe_nr = l->link_nr - DN_MAX_ID;
|
||||||
|
|
||||||
if (!is7) {
|
if (!is7) {
|
||||||
|
@ -808,6 +808,7 @@ copy_obj(char **start, char *end, void *_o, const char *msg, int i)
|
|||||||
/* Adjust burst parameter for link */
|
/* Adjust burst parameter for link */
|
||||||
struct dn_link *l = (struct dn_link *)*start;
|
struct dn_link *l = (struct dn_link *)*start;
|
||||||
l->burst = div64(l->burst, 8 * hz);
|
l->burst = div64(l->burst, 8 * hz);
|
||||||
|
l->delay = l->delay * 1000 / hz;
|
||||||
} else if (o->type == DN_SCH) {
|
} else if (o->type == DN_SCH) {
|
||||||
/* Set id->id to the number of instances */
|
/* Set id->id to the number of instances */
|
||||||
struct dn_schk *s = _o;
|
struct dn_schk *s = _o;
|
||||||
|
Loading…
Reference in New Issue
Block a user