Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
765124a8
Commit
765124a8
authored
Aug 29, 2014
by
Nils Goroll
Committed by
Lasse Karstensen
Sep 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the update interval a double to allow values < 1
parent
1c4e35f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
varnishstat.c
bin/varnishstat/varnishstat.c
+4
-3
varnishstat.h
bin/varnishstat/varnishstat.h
+1
-1
varnishstat_curses.c
bin/varnishstat/varnishstat_curses.c
+1
-1
No files found.
bin/varnishstat/varnishstat.c
View file @
765124a8
...
...
@@ -273,7 +273,8 @@ main(int argc, char * const *argv)
{
int
c
;
struct
VSM_data
*
vd
;
int
delay
=
1
,
once
=
0
,
xml
=
0
,
json
=
0
,
do_repeat
=
0
,
f_list
=
0
;
double
delay
=
1
.
0
;
int
once
=
0
,
xml
=
0
,
json
=
0
,
do_repeat
=
0
,
f_list
=
0
;
vd
=
VSM_New
();
...
...
@@ -290,7 +291,7 @@ main(int argc, char * const *argv)
exit
(
0
);
case
'w'
:
do_repeat
=
1
;
delay
=
ato
i
(
optarg
);
delay
=
ato
f
(
optarg
);
break
;
case
'x'
:
xml
=
1
;
...
...
@@ -332,7 +333,7 @@ main(int argc, char * const *argv)
// end of output block marker.
printf
(
"
\n
"
);
sleep
(
delay
);
usleep
(
delay
*
1e6
);
}
exit
(
0
);
}
bin/varnishstat/varnishstat.h
View file @
765124a8
...
...
@@ -35,4 +35,4 @@
#include "vas.h"
#include "vcs.h"
void
do_curses
(
struct
VSM_data
*
vd
,
int
delay
);
void
do_curses
(
struct
VSM_data
*
vd
,
double
delay
);
bin/varnishstat/varnishstat_curses.c
View file @
765124a8
...
...
@@ -908,7 +908,7 @@ handle_keypress(int ch)
}
void
do_curses
(
struct
VSM_data
*
vd
,
int
delay
)
do_curses
(
struct
VSM_data
*
vd
,
double
delay
)
{
struct
pollfd
pollfd
;
long
t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment