Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1011096
Title: secret undocumented switches to counter::get
Type: Bug Version: None
Submitter: mic42 Created on: 2004-08-17 23:55:45
Subsystem: counter Assigned To: welch
Priority: 2 Severity:
Status: Open Last Modified: 2004-08-17 23:55:45
Resolution: None Closed By:
    Closed on:
Description:
counter::get has several switches that are not
documented, but sound useful -maxPerMinute,
-maxPerHour, -maxPerDay

Those throw an error for non time based counter types:
(bin) 70 % counter::init foo -hist 20
(bin) 71 % counter::get foo -maxPerMinute
can't read "counter(maxPerMinute)": no such element in
array

if they get exposed, throw a more helpful error message