Cisco Cisco Packet Data Gateway (PDG)
Credit Control Configuration Mode Commands
timestamp-rounding ▀
Command Line Interface Reference, StarOS Release 16 ▄
2781
timestamp-rounding
This command configures how to convert exact time into the units that are used in quotas.
Product
ACS
Privilege
Security Administrator, Administrator
Mode
Exec > ACS Configuration > Credit Control Configuration
active-charging service service_name > credit-control
Entering the above command sequence results in the following prompt:
[local]host_name(config-dcca)#
Syntax
timestamp-rounding { ceiling | floor | roundoff }
default timestamp-rounding
default
Configures the default timestamp-rounding setting.
Default:
Default:
floor
timestamp-rounding ceiling
Round off to the smallest integer greater than the fraction.
If the fractional part of the seconds is greater than 0, add 1 to the number of seconds and discard the fraction.
If the fractional part of the seconds is greater than 0, add 1 to the number of seconds and discard the fraction.
timestamp-rounding floor
Discard the fractional part of the second.
timestamp-rounding roundoff
Set the fractional part of the seconds to the nearest integer value. If the fractional value is greater than or
equal to 0.5, add 1 to the number of seconds and discard the fractional part of second.
equal to 0.5, add 1 to the number of seconds and discard the fractional part of second.
Usage
Use this command to configure how to convert exact time into the units that are used in quotas for CCA
charging.
The specified rounding will be performed before system attempts any calculation. For example using round-
off, if the start time is 1.4, and the end time is 1.6, then the calculated duration will be 1 (i.e., 2 – 1 = 1).
charging.
The specified rounding will be performed before system attempts any calculation. For example using round-
off, if the start time is 1.4, and the end time is 1.6, then the calculated duration will be 1 (i.e., 2 – 1 = 1).
Example
The following command sets the CCA timestamp to nearest integer value second (for example, 34:12.23 to
34:12.00):
34:12.00):
timestamp-rounding roundoff