Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6657407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:45:51+00:00 2026-05-26T01:45:51+00:00

So my problem is that i have a down-loader that has the percent of

  • 0

So my problem is that i have a down-loader that has the percent of the file downloaded so far.
And sometimes the percent doesent go up by one or some times it goes up by 4 or 5 etc.
so say my files percent of download went like this:

0 % done
1 % done
2 % done
2 % done
2 % done
3 % done
3 % done
3 % done
3 % done
3 % done
4 % done
5 % done
6 % done
7 % done
7 % done
8 % done
9 % done
10 % done
10 % done
11 % done
12 % done
12 % done
12 % done
13 % done
14 % done
14 % done
15 % done
16 % done
17 % done
17 % done
17 % done
17 % done
17 % done
18 % done
19 % done
20 % done
20 % done
20 % done
20 % done
21 % done
22 % done
23 % done
24 % done
25 % done
26 % done
26 % done
27 % done
28 % done
28 % done
29 % done
30 % done
30 % done
31 % done
32 % done
33 % done
33 % done
33 % done
33 % done
33 % done
34 % done
35 % done
36 % done
36 % done
37 % done
37 % done
38 % done
38 % done
38 % done
39 % done
40 % done
40 % done
40 % done
41 % done
41 % done
41 % done
42 % done
42 % done
43 % done
43 % done
44 % done
44 % done
45 % done
45 % done
46 % done
46 % done
47 % done
47 % done
47 % done
47 % done
47 % done
48 % done
48 % done
49 % done
50 % done
50 % done
50 % done
51 % done
51 % done
51 % done
52 % done
52 % done
53 % done
54 % done
54 % done
54 % done
54 % done
54 % done
54 % done
54 % done
54 % done
55 % done
55 % done
55 % done
55 % done
56 % done
56 % done
56 % done
56 % done
56 % done
56 % done
57 % done
58 % done
59 % done
60 % done
60 % done
61 % done
61 % done
62 % done
62 % done
63 % done
64 % done
65 % done
65 % done
66 % done
66 % done
67 % done
67 % done
67 % done
68 % done
68 % done
69 % done
69 % done
70 % done
70 % done
71 % done
72 % done
73 % done
74 % done
74 % done
75 % done
76 % done
77 % done
78 % done
79 % done
79 % done
80 % done
80 % done
81 % done
81 % done
81 % done
82 % done
83 % done
84 % done
85 % done
85 % done
85 % done
85 % done
86 % done
87 % done
87 % done
87 % done
87 % done
87 % done
87 % done
88 % done
89 % done
89 % done
89 % done
90 % done
90 % done
90 % done
91 % done
91 % done
92 % done
93 % done
94 % done
94 % done
95 % done
95 % done
96 % done
97 % done
98 % done
99 % done
99 % done
99 % done
100 % done

i would want the number that the percent went up… so if it was:

0 % done
1 % done
2 % done
2 % done
2 % done
3 % done
3 % done
3 % done
3 % done
3 % done
4 % done
5 % done

the result would be some thing like:

1
1
0
0
0
1
0
0
0
0
1
1
1

i know this is very simple so far ive tried some thing like:

import random

a=0
z=0
c=0
while a!=100:
    b=random.randint(1,2)
    z+=a
    if b==1:

        a+=1
    z-=a
    print a
    c+=a
    final=c-a
    print final

im almost positive that im making this more complicated then it has to be.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:45:51+00:00Added an answer on May 26, 2026 at 1:45 am

    Given x is the list of percents (of completion for your download):

    x = [ 0, 1, 2, 2, 2, 3, 3 ]
    

    Then use “finite differencing” to get the change:

    delta_x = [ x[i+1] - x[i] for i in xrange(0, len(x)-1) ]
    

    I’ve written it as a list comprehension, but you could also do it with a loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often run into the problem that I have one stream full of data
I currently have script that slides down a once the page has loaded. So
I have encountered a problem that I have not come accross yet when setting
We have the problem that we have the open project files in our SVN
I have a problem that I have not faced before: It seems that the
i have bought a template that have built in contact form problem is that
I have been Googling a problem that I have with trying to integrate the
This is a really weird problem that I have been having. When I download
I frequently run into the problem that I have to preserve state between several
Here is a hum-dinger of a problem that I have not found an answer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.