nsmcp::AccessCardinalityStore method diskBytes (protected)

 <instance of nsmcp::AccessCardinalityStore[i]> diskBytes

Defined in /usr/local/ns/tcl/nsmcp/log-traffic-aggregate.tcl

Testcases:
No testcase defined.
Source code:
set bytes 0
set path [dict get ${:data} path]
if {$path eq {}} {
    return 0
}
foreach suffix {{} -journal -wal -shm} {
    if {[file exists $path$suffix]} {
        incr bytes [file size $path$suffix]
    }
}
return $bytes
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: