Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
5fb1d20e
Commit
5fb1d20e
authored
25 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
added pgrsTime() to store various time stamps for the -w option
parent
4ff9f2b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/progress.c
+29
-7
29 additions, 7 deletions
lib/progress.c
with
29 additions
and
7 deletions
lib/progress.c
+
29
−
7
View file @
5fb1d20e
...
...
@@ -111,6 +111,28 @@ void pgrsMode(struct UrlData *data, int mode)
}
void
pgrsTime
(
struct
UrlData
*
data
,
timerid
timer
)
{
switch
(
timer
)
{
default:
case
TIMER_NONE
:
/* mistake filter */
break
;
case
TIMER_NAMELOOKUP
:
data
->
progress
.
t_nslookup
=
tvnow
();
break
;
case
TIMER_CONNECT
:
data
->
progress
.
t_connect
=
tvnow
();
break
;
case
TIMER_PRETRANSFER
:
data
->
progress
.
t_pretransfer
=
tvnow
();
break
;
case
TIMER_POSTRANSFER
:
/* this is the normal end-of-transfer thing */
break
;
}
}
void
pgrsStartNow
(
struct
UrlData
*
data
)
{
data
->
progress
.
start
=
tvnow
();
...
...
@@ -280,15 +302,15 @@ void pgrsUpdate(struct UrlData *data)
fprintf
(
stderr
,
"
\r
%3d %s %3d %s %3d %s %s %s %s %s %s %s"
,
(
int
)
total_percen
,
/* total % */
max5data
(
total_expected_transfer
,
max5
[
2
]),
/* total size */
(
int
)
dlpercen
,
/* rcvd % */
(
int
)
total_percen
,
/* total % */
max5data
(
total_expected_transfer
,
max5
[
2
]),
/* total size */
(
int
)
dlpercen
,
/* rcvd % */
max5data
(
data
->
progress
.
downloaded
,
max5
[
0
]),
/* rcvd size */
(
int
)
ulpercen
,
/* xfer % */
max5data
(
data
->
progress
.
uploaded
,
max5
[
1
]),
/* xfer size */
(
int
)
ulpercen
,
/* xfer % */
max5data
(
data
->
progress
.
uploaded
,
max5
[
1
]),
/* xfer size */
max5data
(
data
->
progress
.
dlspeed
,
max5
[
3
]),
/* avrg dl speed */
max5data
(
data
->
progress
.
ulspeed
,
max5
[
4
]),
/* avrg ul speed */
max5data
(
data
->
progress
.
dlspeed
,
max5
[
3
]),
/* avrg dl speed */
max5data
(
data
->
progress
.
ulspeed
,
max5
[
4
]),
/* avrg ul speed */
time_total
,
/* total time */
time_current
,
/* current time */
time_left
,
/* time left */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment