How to calculate file tranfer rate

I am working on applet which uplaod the files on ftp now i want to add progress bar on it which tell me exactly how much time it takes to upload or how manay percent it completed.
import cz.dhl.ftp.Ftp;
import cz.dhl.ftp.FtpConnect;
import cz.dhl.ftp.FtpFile;
import cz.dhl.io.CoFile;
import cz.dhl.io.CoLoad;
import cz.dhl.io.LocalFile;
i am using these libraries

So what's the question?I think it is how do I put in a progress bar which means I need to know how to calculate the file transfer rate.

Similar Messages

  • How to calculate different tax rates for  same material in single invoice.

    Dear All,
    If the excise rates are changed during the budget and the stock is lying with the client with the existing rate.
    After effective date of new rates we receive the good with new rates.The new and the old rate stock is sent to a customer in single invoice.How can we configure such case. The excise should calculate by old rate to old stock and new stock should be calculated by new rate.
    Please guide in such case.
    Thanks in advance.
    deepti

    Hi Deepti
    In copy control you will have to redeterfine taxes whilst billing.
    If you want you change this and keep it as copy pricing. This won't change anything. Else use Copy prices and redetermine tax. You can find this setting in VTLA and VTFA in item category Pricing type.
    You can't have both of then in the same invoice as procedure is decided for the whole invoice and not a single Item. You can rather have two different item category type. TAN and ZTAN you redetermine taxes for tan and copy them as it is for ZTAN.
    Regards

  • HT2534 how to itunes file tranfer in iphones 3gs

    how to long time iphone games playing

    FYI, I now remember what I wasn't remembering.
    I ran a apple script to copy the file location to another field that I could display.
    Then I could sort and find music files not stored in the correct master location.
    Sundry Info was the script I used to copy the file path to another field (comments, description or categories)
    I used categories since I wasn't using this field.
    bdog

  • How to calculate UOM conversion rate

    Hi All,
    Whether there is any Standard API available to calculate the UOM Conversion rate.
    There can be interclass intraclass or standard conversion.
    Please help.
    Thanks,
    Arun

    Hi,
    If the Business no longer uses the 500 pcs conversion, one could Inactivate the conversion and define a new one.
    If Business wants to have a choice of using 500 or 450 pcs, then a new Case UOM needs to be defined.
    I hope this helps.
    Regards
    Adarsh Krishna

  • How to calculate percentage growth rate

    Hi guys,
    Please I am trying to calculate the percentage of growth rate using MDX query.
    I have tried this but it keeps returns a null value.
    Create Member CurrentCube.[Measures].[Monthly Growth Internet Sales Amount]
    As [Measures].[Internet
    Sales Amount]/
    ([Date].[Month of Year].CurrentMember,[Measures].[Internet Sales Amount])- 
    ([Date].[Month of Year].PrevMember,[Measures].[Internet Sales Amount]), 
    FORMAT_STRING = "Currency", 
    VISIBLE = 1
    I need your assistance please.
    me

    Are you trying to return a percentage? If so, your format_string needs to have a percentage format.
    Also, are you trying to return [Internet Sales Amount] change vs last month? 
    If so, the query should be something like this...
    Member CurrentCube.[Measures].[Monthly Growth Internet Sales Amount]
    As
    (([Date].[Month of Year].CurrentMember,[Measures].[Internet Sales Amount])-
    ([Date].[Month of Year].PrevMember,[Measures].[Internet Sales Amount]))
    / [Measures].[Internet Sales Amount],
    FORMAT_STRING = "0.0%",
    VISIBLE = 1
    Please mark as answered, if this is what you are looking for.

  • How to calculate the unit for RATE?

    Hey All,
    I am not sure if there is something standard for this or not.
    I am calculating the 'Rate' by using 'Value/Amount' and 'Quantity' as follows -
    Rate == Value /  Quantity
    I need to calculate the unit for the rate as below -
    Rate unit == Value unit (Currency) /  Quantity unit (Base_uom) 
    (for example -
    if value is 1000 USD and quantity is 10 TO then Rate should come out as 100 USD / TO)
    Could anyone please suggest how to calculate the unit in this case?
    Many Thanks!
    Tanu

    Hi,
    Go through the below link it may give some idea
    http://help.sap.com/saphelp_nw04/Helpdata/EN/19/1d7abc80ca4817a72009998cdeebe0/content.htm
    Regards,
    Marasa.

  • CFM /TR - how system calculate amount based on rate FX 60A

    Hi all,
    i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
    steps input:-
    1. header - comp code, product type, trans type
    2. partner
    3. purchase curr & amount (eg. IDR 8,345,545,500)
    4. sale currency only (amount system will auto calculate) USD
    5. rate field = 11.553
    6. spot rate will auto pick up from rate
    7. value date
    8. contract date
    upon TBB1 no error. posting log as follows:-
    FX1000+ : 40 8,345,545,500 IDR bank GL acc
                    50 8,345,545,500 IDR clearing acc
    FX2000- : 40 722370.42 USD clearing acc
                   50 722370.42 USD bank GL acc
    but upon TPM18 error occurred as follows:
    DBT_C009 - GL not maintain in acc symbol 5.3.4
    DBT_E039 - no posting spec assigned to update type
    DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
                       50 0 USD, 431,977,511 IDR clearing acc
    so, after maintained DBT_C009 as follows still error for DBT_E039:
    40  0 USD, 38 IDR clearing acc
    50  0 USD, 38 IDR P&L gl acc
    what i don't understand is how system calculate and get DBT_C009 & DBTE039.
    what is the function of TPM18?
    thanks.

    Hello Prarnod,
    I have done the first node only for actuals that come from the integration to the internal order.
    I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
    Thanks,
    Paul

  • How to calculate Month on Month growth rates in an OBIEE query?

    Dear all,
    I would like to ask your help on how to calculate Month on Month growth rates [(last month - previous month)/previous month*100%] in an OBIEE query. This ratio should be always calculated for the last 2 available months.
    I have the following query:
    Month0 | Month1 | Month2
    Product A 500 | 100 | 200
    Product B 600 | 300 | 150
    would like to add Month on Month column as following:
    Month0 | Month1 | Month2 | Month on Month(%)
    Product A 500 | 100 | 200 | +100.00%
    Product B 600 | 300 | 150 | -50.00%
    I tried to add a calculated item but it was not successful because I could not find out how to show only the calculated column as % with 2 decimals. Moreover, I would ideally prefer to have an automatic update but as far as I understood it can't be done in the calculated item automatically
    I also tried to add a new column in the column area and to filter the results for the last month, then for the previous month and then based on it to calculate the needed ratio but unfortunately it also does not work out.
    Thank you your hints in advance

    Hi,
    The best way to solve this is using the Ago function. With this you can create a logical column for the previous month. Then you will have 2 columns available with which you can do your calculations.
    If you want to do this with a calculated item (don't know if the formatting will work for you), but you can make the calculation more general by using $1 for column 1 and $2 for column 2 in your calculation. So the relative columns ($x) will change with the columns in your report.
    Regards

  • How to calculates averages and send to a file?(source code)

    how to calculates averages and send to a file?(source code) I need to get started but I don't know where to begin...........the book I have doesn't really say how to handle averages and send to a file.................anybody got suggestions on how to get started? I am a newbie so place in layman's terms.............thanx

    To calculate an average: add all of the numbers together and divide by how many numbers you added together.
    ex: (1 + 2 + 3 + 10)/4 = 4 (4 is the average)
    As for writing them to a file, look over the API for random or sequential access files.

  • How system calculate Exchange Rate for material?

    I have some doubt how system calculate exchange rate for material when doing GR.
    For example, standard price of material is 0.01 USD per ea. PO is created in foreign currency (THB) with qty: 40,000 ea (THB 2,852.00)
    Actually when I do GR ea then accounting doc is:
    Dr. Inventory 400 USD (12,800 THB)
       Cr. GR/IR    88.64- USD (2,852.00- THB)
       Cr. Variant 311.36- USD (9,948.00- THB)
    for 2nd and 3rd line item, exchange rate M (THB -> USD) is 0.03108 which is correct.
    Could anyone advise where system get exchange rate for 1st line item?

    Hi
    First of all, as mentioned by you, the exchange rate for Item 2 and 3 is not 0.03108.. It is as below, based on the figures given by you...
    Dr. Inventory 400 USD (12,800 THB)........ Exch rate is 0.03125
    Cr. GR/IR 88.64- USD (2,852.00- THB)....... Exch rate is 0.03108
    Cr. Variant 311.36- USD (9,948.00- THB).... Exch rate is 0.0313
    I guess the item 3 is just a derivation from Items 1 and 2.. The Price diff results as a difference between std cost and purchase price...
    I believe, the exchange rate would have been 0.03125 at the time of GR... You need to check this in your system... For sure, it uses  exch rate type M in the standard... Check if 0.03125 (USD -> THB) or 32 THB -> USD exists in your system at all
    Item 2 is based on your PO negotiated rate...
    Regards
    Ajay M

  • What is Customer order Fill rate process and how we calculate that .

    Hi All,
    Please provide me idea of Customer order Fill rate process and how we calculate that .
    Thanks

    Quote
    Originally posted by WarLord
    I like this HD tool. i use it everyday now. the tempture readings are great Hd temp cpu temp and even the system temp nice added feature to the monitoring. And this is an alternative to enabling the SMART in the bios? Thats the way im understanding it. is that right Maesus ?Because i have disabled in bios. She went threw alot of trouble here. thank you  
    Well from my observation, whether SMART is disabled or enabled in the BIOS, SMART is always working within the HDD itself.
    Basically SMART is acting like a blackbox, monitoring and tabulating HDD condition from time to time and its attributes only fully revealable by the manufacturers. SpeedFan's SMART status only displays partial information that is displayable. Some attributes are hidden, ~OR~ the attributes' locations are different from one HDD to another brand, such that some values don't correspond to the attribute meaning at all.
    It is very doubtful to claim that enabling SMART in the BIOS will hog down the performance. Just like a transport bus (yeah real bus that fetch passenger :P ), with or without the black box installed can't help it if the driver wants to speeding. :P

  • Help..! ..how to calculate the average interest rate in discoverer?

    help..!
    I want to calculate average interest rate in discoverer, question describes below:
    1. the data have 4 columns, 1 account number, 2 balance, 3.interest rate, 4. product type 1, product type 2
    2.average interest rate =
    sum (product type1 account bal * rate / sum(product bal)).
    a*sum(product bal) is sum every records column 2 according the type of product
    b*every record need to calculate using balance to divide sum(product bal) for calculate the rate of the sum(product bal) of type of product
    c* sum(b*) is what my answer rate.
    3.
    I need to display average interest rate in discoverer, and each product have a one average rate according user drill-up or drill-down product dimension.
    *product dimension have two level
    please tell me how to let every record divide by group sum(product bal)
    or tell me how to solve this problem.
    thanks!
    david

    Hi David
    Try using the AVG analytic function.
    Best wishes
    Michael

  • How to achieve the maximum file transfer rate from PXI to local host?

    I will have to copy a huge amount of data (as big as 50 GB) from a PXI-8106 unit on site to a laptop. Currently it would take several hours. It is critical to max out the data transfer rate.
    The standard method we've been using is just drag and drop using Windows Explorer via FTP. I tried to use FTP VIs with Filezilla Server as well but the transfer rate is only like 1.5 MB/s. Is this normal? Once I saw it was 3.0 MB/s but for some reason, that isn't happening now.
    For another option, I tried to transfer data to a USB flash drive but it's even slower. As far as I know, USB 2.0 transfer rate is supposed to be around 60 MB/s but why would it be slower than 1.5 MB/s? What could be the speed limiting factor in my file transfer setup?
    Any tips on improving file transfer rate would be appreciated!

    Sustained 40 MB/s? That is my dream speed! The maximum speed I've ever seen here was about 25 MB/s, which is still very good, and that happened only after copying back and forth, which I explained above. Let me go through what I did with screencaps first.
    These are the test tdms files to transfer in the PXI: an original file witten in the PXI and its copy file. I copied the original file from PXI to laptop and renamed it (added '_copy') and then copied it back to PXI.
    FTP module is transferring the original file to the Filezilla server on laptop. Note the low speed.
    FTP module is transferring the copy file to the Filezilla server on laptop. Note the higher speed.
    This is the FTP sub VI I'm using. It transfers files in sub-folders (one level lower), too. The data connection is set to 'passive' on the FTP Put Multiple Files VI but it doesn't seem to make any difference. I attach the sub VI.
    You tried the file transfer with a 500 MB text file. Would there be any difference if the file type was tdms? Would the RAM size matter? It is 2GB here.
    And the LED is orange, which means Gigabit.
    Another question: Is there any way to programmatically stop file transfer in progress? Currently, I just have to restart the PXI.
    Thank you!
    Attachments:
    FTP.vi ‏40 KB

  • How to calculate network bandwidth for dataguard 11.2

    Hi all,
    have a customer who needs to setup a new data guard environment in release 11.2.0.2. Primary site will be in Italy, standby site will be in New York.
    He would like to know the network bandwidth between primary and standby site needed to obtain the maximum performance in redo transport with or without compression option.
    I found a lot of threads and docs indicating some formulas but none of them explained how to:
    - calculate network bandwidth on a rac system (having a single instance standby database)
    - calculate network bandwidth in case of use redo transport compression
    - calculate cpu consumption if using redo transport compression
    Could you please give any advice?
    A.M.

    Hi,
    customer made ma a lot of technical question just like the following:
    - which are the main factors determining the 30% overhead indicated in the network bandwidth calculation
    Required bandwidth = ((Redo rate bytes per sec. / 0.7) * 8) / 1,000,000 = bandwidth in Mbps
    - how much bandwidth will I gain if I apply redo transport compression and why redo transport compression and why usually the gzip utility gives me 5X less and oracle compression gives me a maximum of 50-60% of compression even if it uses the same engine of zlib compression as indicated below?
    Data Guard redo transport compression uses the same zlib compression engine at level 1 as gzip -1. To estimate the compression ratio you can achieve using Data Guard redo transport compression, first compress an archived redo log file with gzip:
    $ gzip -1 <archive redo logfile>.arc
    Then use the gzip --list option to explicitly display the compression ratio:
    $ gzip --list <archive redo logfile.arc>.gz
    Note: Use gzip version 1.3.3 or later. Refer to www.gzip.org for the latest information on gzip.
    Could anyone give me any direction?
    Thank you
    AM

  • File Data Rate?

    Dear PrP CC Users,
    I work with several file formats ranging from ProRes (422HQ, 4444), to H264 to R3D. Within my project browser it never displays the metadata File Data Rate, it is always blank. This for me is a useful piece of information when dealing with footage and knowing what drive speeds I require; having migrated to PrP CC from FCP7, this is something I sorely miss.
    Is there some way to actively see the File Data Rate? How come PrP CC fails to calculate the File Data Rate?
    Thank you.

    Is there some way to actively see the File Data Rate?
    Not yet.
    http://forums.adobe.com/thread/1369233?tstart=60

Maybe you are looking for