Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
c9550442
Commit
c9550442
authored
Jan 20, 2019
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine code style
parent
3293280e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
core/src/main/java/com/github/shadowsocks/aidl/TrafficStats.kt
...src/main/java/com/github/shadowsocks/aidl/TrafficStats.kt
+1
-1
core/src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt
.../src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt
+1
-1
detekt.yml
detekt.yml
+1
-1
No files found.
core/src/main/java/com/github/shadowsocks/aidl/TrafficStats.kt
View file @
c9550442
...
...
@@ -31,7 +31,7 @@ data class TrafficStats(
// Bytes for the current session
var
txTotal
:
Long
=
0L
,
var
rxTotal
:
Long
=
0L
):
Parcelable
{
)
:
Parcelable
{
operator
fun
plus
(
other
:
TrafficStats
)
=
TrafficStats
(
txRate
+
other
.
txRate
,
rxRate
+
other
.
rxRate
,
txTotal
+
other
.
txTotal
,
rxTotal
+
other
.
rxTotal
)
...
...
core/src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt
View file @
c9550442
...
...
@@ -44,7 +44,7 @@ import java.util.concurrent.TimeUnit
/**
* This class sets up environment for ss-local.
*/
class
ProxyInstance
(
val
profile
:
Profile
,
private
val
route
:
String
=
profile
.
route
):
AutoCloseable
{
class
ProxyInstance
(
val
profile
:
Profile
,
private
val
route
:
String
=
profile
.
route
)
:
AutoCloseable
{
var
configFile
:
File
?
=
null
var
trafficMonitor
:
TrafficMonitor
?
=
null
private
val
plugin
=
PluginConfiguration
(
profile
.
plugin
?:
""
).
selectedOptions
...
...
detekt.yml
View file @
c9550442
...
...
@@ -165,7 +165,7 @@ formatting:
active
:
true
autoCorrect
:
true
NoItParamInMultilineLambda
:
active
:
tru
e
active
:
fals
e
NoLineBreakAfterElse
:
active
:
true
autoCorrect
:
true
...
...
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