Project

General

Profile

Actions

Bug #3379

closed

Duplicate assignment in uts/common/cpr/cpr_stat.c

Added by Igor Pashev about 9 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Start date:
2012-11-23
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/common/cpr/cpr_stat.c#L74
https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/common/cpr/cpr_stat.c#L76

    cep->ce_ntests |= CE_START_MASK;
    cep->ce_sec.stime = cep->ce_sec.etime = tv.tv_sec;
    cep->ce_sec.ltime = cep->ce_sec.ltime = 0; /* <<=== HERE === */
    cep->ce_msec.stime = cep->ce_msec.etime = tv.tv_nsec / 100000000;
    cep->ce_msec.ltime = cep->ce_msec.ltime = 0;  /* <<=== HERE === */
Actions

Also available in: Atom PDF