summaryrefslogtreecommitdiff
path: root/usr/src/cmd/acct/lib/pnpsplit.c
diff options
context:
space:
mode:
authorYateesh Kumar Vusirika - Sun Microsystems - Bangalore India <Yateeshkumar.Vusirika@Sun.COM>2008-11-19 11:52:29 +0530
committerYateesh Kumar Vusirika - Sun Microsystems - Bangalore India <Yateeshkumar.Vusirika@Sun.COM>2008-11-19 11:52:29 +0530
commitea13b00556b1a7ff990e53fa371d29073f7f0e46 (patch)
tree1d7f6c3991d5bdf5d3536a24d401f693ca1c20d9 /usr/src/cmd/acct/lib/pnpsplit.c
parent33c00887806bb2d9798efe80c27adf1b2e63648b (diff)
downloadillumos-joyent-ea13b00556b1a7ff990e53fa371d29073f7f0e46.tar.gz
6770054 accounting tool should not give negative time values when the non-prime time is set to 2400
Diffstat (limited to 'usr/src/cmd/acct/lib/pnpsplit.c')
-rw-r--r--usr/src/cmd/acct/lib/pnpsplit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/src/cmd/acct/lib/pnpsplit.c b/usr/src/cmd/acct/lib/pnpsplit.c
index eec5aea376..7942302730 100644
--- a/usr/src/cmd/acct/lib/pnpsplit.c
+++ b/usr/src/cmd/acct/lib/pnpsplit.c
@@ -252,10 +252,7 @@ inithol()
h[1].h_hour = npstart / 100;
}
- h[1].h_sec = 0;
- h[1].h_min = npstart%100;
- h[1].h_hour = (npstart/100==24) ? 0 : npstart/100;
- h[1].h_type = PRIME ;
+ h[1].h_type = PRIME;
/* This is the end of the day */
h[2].h_sec = 0;