Skip to content

Commit 9d2bee3

Browse files
Use time interval
1 parent fc4a1a2 commit 9d2bee3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/print_conn_table.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
# Time window:
9595
# - for "last X seconds": start is equal to -X, end is equal to 0
9696
#
97-
start = -600
97+
start = -7200
9898
end = 0
9999

100100
#
@@ -111,11 +111,11 @@
111111
"Bytes In", "Bytes Out", "Bytes", "Req In", "Req Out", "Req")
112112

113113
while cur < fetch_limit:
114-
paging = {'from': cur, 'to': cur + page_size }
114+
paging = {'from': cur, 'to': cur + page_size}
115115
res = sdclient.get_data(metrics,
116-
-600,
116+
start,
117+
end,
117118
0,
118-
600,
119119
flt,
120120
'host',
121121
paging)

0 commit comments

Comments
 (0)