[ZendTo] Feature request: optional units on some preferences

Ken Etter KLE at msktd.com
Tue Nov 17 19:15:57 GMT 2020


I'll second that one!
>>> John Thurston via ZendTo <zendto at zend.to> 11/17/2020 2:13 PM >>>
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

_______________________________________________
ZendTo mailing list
ZendTo at zend.to
http://jul.es/mailman/listinfo/zendto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20201117/42e13aa8/attachment.html>


More information about the ZendTo mailing list