Macromedia Flash Server - ConnectionLight Component Question

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > April 2005 > ConnectionLight Component Question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ConnectionLight Component Question
Janu

2005-04-07, 5:49 pm

This is maybe a silly question but need to know about it
When I opened ConnectionLight component on update class (
FCConnectionLightClass.prototype.update ) I found :

var upval = this.formatRate(up*8000);
var dnval = this.formatRate(down*8000);

Did anybody can explaine me why byte up and byte down times 8000 to get the
result?
I mean why not just :

var upval = this.formatRate(up);
var dnval = this.formatRate(down);


Thanks

Janu

=-----------------------------------------------------------
Supported by Fig Leaf Software -
http://www.figleaf.com<http://www.figleaf.com/>
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.figleaf.com/mailman/listinfo/flashcomm>

=---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=---------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm




=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

da5id

2005-04-07, 5:49 pm

up and down are bits per second so up * 8 * 1000 = 'kilobytes' per second?

_
david


On Mon, 21 Feb 2005 10:12:01 +0800, Janu <janumedia-/E1597aS9LS+ZvmcBgLQeg@public.gmane.org> wrote:
> This is maybe a silly question but need to know about it
> When I opened ConnectionLight component on update class (
> FCConnectionLightClass.prototype.update ) I found :
>
> var upval = this.formatRate(up*8000);
> var dnval = this.formatRate(down*8000);
>
> Did anybody can explaine me why byte up and byte down times 8000 to get the
> result?
> I mean why not just :
>
> var upval = this.formatRate(up);
> var dnval = this.formatRate(down);
>
> Thanks
>
> Janu
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software -
> http://www.figleaf.com<http://www.figleaf.com/>
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.figleaf.com/mailman/listinfo/flashcomm>
>
> =---------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =---------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Fabio Sonnati

2005-04-07, 5:49 pm

Because up and down contains KBytes/s
and they want Bit/s. Then FormatRate adjust
visualization of bandwidth.


----- Original Message -----
From: "Janu" <janumedia-/E1597aS9LS+ZvmcBgLQeg@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Monday, February 21, 2005 3:12 AM
Subject: [FlashComm] ConnectionLight Component Question


> This is maybe a silly question but need to know about it
> When I opened ConnectionLight component on update class (
> FCConnectionLightClass.prototype.update ) I found :
>
> var upval = this.formatRate(up*8000);
> var dnval = this.formatRate(down*8000);
>
> Did anybody can explaine me why byte up and byte down times 8000 to get
> the
> result?
> I mean why not just :
>
> var upval = this.formatRate(up);
> var dnval = this.formatRate(down);
>
>
> Thanks
>
> Janu
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software -
> http://www.figleaf.com<http://www.figleaf.com/>
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
>
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.figleaf.com/mailman/listinfo/flashcomm>
>
> =---------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =---------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Fabio Sonnati

2005-04-07, 5:49 pm

up=Kbytes/s

up*8*1000=bit/s

es:
up=10 (KBytes/s) -> up*8*1000= 80000 (bits/s)

----- Original Message -----
From: "da5id" <davidkclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Monday, February 21, 2005 3:35 PM
Subject: Re: [FlashComm] ConnectionLight Component Question


> up and down are bits per second so up * 8 * 1000 = 'kilobytes' per second?
>
> _
> david
>
>
> On Mon, 21 Feb 2005 10:12:01 +0800, Janu <janumedia-/E1597aS9LS+ZvmcBgLQeg@public.gmane.org> wrote:
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Janu

2005-04-07, 5:49 pm

I thought 1 Kb = 1024 bytes.
So for this case 1 Kb = 8000 bytes?

Small thing but make me confused. huh

----- Original Message -----
From: "Fabio Sonnati" <sonnati-6XAXFxi7MR1y6ZJYwPuT2FaTQe2KTcn/@public.gmane.org>
To: "da5id" <davidkclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>; "FlashComm Mailing List"
<flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, February 22, 2005 3:57 AM
Subject: Re: [FlashComm] ConnectionLight Component Question


> up=Kbytes/s
>
> up*8*1000=bit/s
>
> es:
> up=10 (KBytes/s) -> up*8*1000= 80000 (bits/s)
>
> ----- Original Message -----
> From: "da5id" <davidkclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
> Sent: Monday, February 21, 2005 3:35 PM
> Subject: Re: [FlashComm] ConnectionLight Component Question
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>





=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Fabio Sonnati

2005-04-07, 5:49 pm

Yes 1KB/s = 1024 bytes/s
but 1KB/s is also equal to 1024*8 bit/s




>I thought 1 Kb = 1024 bytes.
> So for this case 1 Kb = 8000 bytes?
>
> Small thing but make me confused. huh
>
> ----- Original Message -----
> From: "Fabio Sonnati" <sonnati-6XAXFxi7MR1y6ZJYwPuT2FaTQe2KTcn/@public.gmane.org>
> To: "da5id" <davidkclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>; "FlashComm Mailing List"
> <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
> Sent: Tuesday, February 22, 2005 3:57 AM
> Subject: Re: [FlashComm] ConnectionLight Component Question
>
>
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-04-07, 5:49 pm

Fabio,

When working with BW, 1kb =1000 bits. So actually you're working with a
"false byte" in the 1000 (not 1024) is used with bandwidth measurement.

So, no, in this case, 1KB = 1000 bytes and 1kb = 1000 * 8.

I know this doesn't make sense, especially when all other measurements
in computing use 1024 =1K. But you have to remember, BW is a marketing
measurement; not a computing one.

Bill

On Feb 23, 2005, at 7:06 AM, Fabio Sonnati wrote:

> Yes 1KB/s = 1024 bytes/s
> but 1KB/s is also equal to 1024*8 bit/s
>
>
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>

bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Janu

2005-04-07, 5:50 pm

Thanks everybody
Now Clear

----- Original Message -----
From: "Bill Sanders" <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Wednesday, February 23, 2005 8:33 PM
Subject: Re: [FlashComm] ConnectionLight Component Question


> Fabio,
>
> When working with BW, 1kb =1000 bits. So actually you're working with a
> "false byte" in the 1000 (not 1024) is used with bandwidth measurement.
>
> So, no, in this case, 1KB = 1000 bytes and 1kb = 1000 * 8.
>
> I know this doesn't make sense, especially when all other measurements
> in computing use 1024 =1K. But you have to remember, BW is a marketing
> measurement; not a computing one.
>
> Bill
>
> On Feb 23, 2005, at 7:06 AM, Fabio Sonnati wrote:
>
> bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>




=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com