Re: Fcp sizes and time
Jerome Flesch <[email protected]>
| Newsgroups | gmane.network.freenet.technical |
|---|---|
| Message-ID | <[email protected]> |
> Hi, > > I have a question regarding byte sizes in Fcp. Along with some requests > sizes are passed as 1G or 1000K. > I would be interrested to know where you saw that. From what I know, FCP always provide/need sizes/times in bytes/seconds (except for things related to the node config, see below). > Quite obvious what it's about but > nevertheless it is not documented. > > Can I assume Fcp always uses kibs and values are always passed following > this patttern? > > -1 (not set) > n > n*1000 or (n)K > n*1.000.000 or (n)M > (...) > > The only time value (except from secs since epoch) I faced so far is one > I got in > response to GetConfig. It read '1HOUR'. Is there a similar pattern for > time values to rely on? > This value comes directly from the node configuration, and node configuration is made to be human readable. Imo, that's the only reason why this time is not given in seconds. -- Jerome Flesch _______________________________________________ Tech mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/tech
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHsveykgr/xvhO85MRAuTsAJ9vuv9U02+B4S5+4ecvxNodQqbRlACgq8zu jOl2WSz76py5BJZWhDPPD98= =cMSZ -----END PGP SIGNATURE-----