[ZendTo] Feature request: optional units on some preferences

John Thurston john.thurston at alaska.gov
Tue Nov 17 19:13:18 GMT 2020


Computers are good at doing math. Can we have the option of including 
units on some preferences?

I'm thinking, particularly, about:
   maxBytesForDropoff
   maxBytesForFile
   maxBytesForChecksum
   maxBytesForEncryption

These are currently specified in bytes. This is generally a long number 
which is hard to read and easy to stumble over. May we have the default 
continue to be "number of bytes" but have it accept an optional 
unit-suffix? For example:
   'maxBytesForDropoff'   => 25769790582,
could be specified as:
   'maxBytesForDropoff'   => 24G,

Old preferences would continue to work, and new preferences would be 
easier to read.

-- 
--
Do things because you should, not just because you can.

John Thurston    907-465-8591
John.Thurston at alaska.gov
Department of Administration
State of Alaska



More information about the ZendTo mailing list