diff options
| author | Mitesh Kanjariya <mitesh@cumulusnetworks.com> | 2017-08-28 18:19:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-28 18:19:03 -0700 |
| commit | 09fdc88c8cb0cd4169ae97b652d82f6a174a4041 (patch) | |
| tree | ce312038b12ce5128d375fa075c52ce30cf64207 /lib/spf_backoff.c | |
| parent | 6b3ee3a0b013e580abbce83ae46e4ed2bcf5f7a7 (diff) | |
| parent | 126ee21d2ed9451aefab869c482bb28c6b4f6085 (diff) | |
Merge branch 'master' into dev-master
Diffstat (limited to 'lib/spf_backoff.c')
| -rw-r--r-- | lib/spf_backoff.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/spf_backoff.c b/lib/spf_backoff.c index d075e70d4e..92b7620eda 100644 --- a/lib/spf_backoff.c +++ b/lib/spf_backoff.c @@ -226,8 +226,9 @@ void spf_backoff_show(struct spf_backoff *backoff, struct vty *vty, if (backoff->t_holddown) { struct timeval remain = thread_timer_remain(backoff->t_holddown); - vty_out(vty, "%s Still runs for %ld msec\n", - prefix, remain.tv_sec * 1000 + remain.tv_usec / 1000); + vty_out(vty, "%s Still runs for %lld msec\n", + prefix, (long long)remain.tv_sec * 1000 + + remain.tv_usec / 1000); } else { vty_out(vty, "%s Inactive\n", prefix); } @@ -237,8 +238,9 @@ void spf_backoff_show(struct spf_backoff *backoff, struct vty *vty, if (backoff->t_timetolearn) { struct timeval remain = thread_timer_remain(backoff->t_timetolearn); - vty_out(vty, "%s Still runs for %ld msec\n", - prefix, remain.tv_sec * 1000 + remain.tv_usec / 1000); + vty_out(vty, "%s Still runs for %lld msec\n", + prefix, (long long)remain.tv_sec * 1000 + + remain.tv_usec / 1000); } else { vty_out(vty, "%s Inactive\n", prefix); } |
