Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
Pluggable Transports
Snowflake
Commits
af113436
Verified
Commit
af113436
authored
May 30, 2022
by
shelikhoo
Browse files
Update distinct counter interface
parent
be40b623
Changes
1
Hide whitespace changes
Inline
Side-by-side
distinctcounter/counter.go
View file @
af113436
...
...
@@ -12,14 +12,14 @@ import (
func
main
()
{
inputFile
:=
flag
.
String
(
"in"
,
""
,
""
)
start
:=
flag
.
String
(
"
start
"
,
""
,
""
)
end
:=
flag
.
String
(
"
end
"
,
""
,
""
)
start
:=
flag
.
String
(
"
from
"
,
""
,
""
)
end
:=
flag
.
String
(
"
to
"
,
""
,
""
)
flag
.
Parse
()
startTime
,
err
:=
time
.
Parse
(
time
.
UnixDate
,
*
start
)
startTime
,
err
:=
time
.
Parse
(
time
.
RFC3339
,
*
start
)
if
err
!=
nil
{
log
.
Fatal
(
"unable to parse start time:"
,
err
)
}
endTime
,
err
:=
time
.
Parse
(
time
.
UnixDate
,
*
end
)
endTime
,
err
:=
time
.
Parse
(
time
.
RFC3339
,
*
end
)
if
err
!=
nil
{
log
.
Fatal
(
"unable to parse end time:"
,
err
)
}
...
...
Write
Preview
Supports
Markdown
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