Re: Fcp sizes and time

Matthew Toseland <toad-EI5O+8PHWbJeeLb3ft/[email protected]>
Newsgroups gmane.network.freenet.technical
Message-ID <[email protected]>
On Thursday 14 February 2008 14:45, juergen urner wrote:
> Matthew Toseland schrieb:
> > On Wednesday 13 February 2008 21:44, Jerome Flesch wrote:
> >   
> >> I commited a patch into the node to make it possible to ask for expected 
> >>     
> > data 
> >   
> >> types with FCP.
> >> See http://wiki.freenetproject.org/FCP2p0GetConfig , 
> >> http://wiki.freenetproject.org/FCP2p0ConfigData .
> >>
> >> I hope it will help you (anyway it will help me :)
> >>
> >> For periods, I can't make the data type more specific than "string" at 
the 
> >> moment, sorrry.
> >>
> >> Currently, I'm wondering if it would also be a good idea to convert all 
the 
> >> values into basic units (-> in bytes) and let the client apps displays it 
in 
> >> a more user-friendly way ? (I'm not really sure how the client would 
handle 
> >> values like '1025' ...)
> >>     
> >
> > Exactly, there's a reason why we keep the original string. If the user 
wants 
> > 12 GiB then we should remember that it's 12GiB and not 12884901888 bytes.
> >   
> 
> You are right. I change my question to: why are there kbytes and* kibiytes?
> I wouldn't mind forcing one or the other upon every other client around by
> the way my client handles it.

Because there was no real reason to force one or the other? Feel free to 
convert it into bytes and offer a slider in your app.
> 
> Juergen

_______________________________________________
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)

iD8DBQBHtFkkA9rUluQ9pFARAoYhAJ9xNSV4UHP4cj8mRSWfu3Xl3E2PTwCfWjrK
zz4DkGsh56XN8txne12S85I=
=fBMW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.