fs::unit_conv (private)
fs::unit_conv value
Defined in packages/file-storage/tcl/file-storage-procs.tcl
Convert units to value. This should done more generic, ... we have in NaviServer c-level support for this which should be used if available in the future.
- Parameters:
- value (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if {[regexp {^([0-9.]+)\s*(MB|KB)} $value . number unit]} { set value [expr {int($number * ($unit eq "KB" ? 1024 : 1024*1024))}] } return $valueGeneric XQL file: packages/file-storage/tcl/file-storage-procs.xql
PostgreSQL XQL file: packages/file-storage/tcl/file-storage-procs-postgresql.xql
Oracle XQL file: packages/file-storage/tcl/file-storage-procs-oracle.xql