Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
RatelExtension
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ratel
RatelExtension
Commits
3f7dba67
Commit
3f7dba67
authored
Jun 05, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件大小
parent
93a51bd8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
FileLogger.java
src/main/java/com/virjar/ratel/api/extension/FileLogger.java
+3
-3
No files found.
src/main/java/com/virjar/ratel/api/extension/FileLogger.java
View file @
3f7dba67
...
@@ -61,13 +61,13 @@ public class FileLogger {
...
@@ -61,13 +61,13 @@ public class FileLogger {
RposedBridge
.
log
(
"failed to create log file :"
+
filename
.
getAbsolutePath
());
RposedBridge
.
log
(
"failed to create log file :"
+
filename
.
getAbsolutePath
());
}
}
}
else
{
}
else
{
if
(
filename
.
length
()
>
2
0
*
1024
*
1024
)
{
if
(
filename
.
length
()
>
2
*
1024
*
1024
)
{
RandomAccessFile
accessFile
=
new
RandomAccessFile
(
filename
,
"r"
);
RandomAccessFile
accessFile
=
new
RandomAccessFile
(
filename
,
"r"
);
long
total
=
accessFile
.
length
();
long
total
=
accessFile
.
length
();
long
index
=
total
-
10
*
1024
*
1024
;
long
index
=
total
-
2
*
1024
*
1024
;
if
(
index
>
0
)
{
if
(
index
>
0
)
{
accessFile
.
seek
(
index
);
accessFile
.
seek
(
index
);
byte
[]
bytes
=
new
byte
[
11
*
1024
*
1024
];
byte
[]
bytes
=
new
byte
[
2
*
1024
*
1024
+
1024
];
int
read
=
accessFile
.
read
(
bytes
);
int
read
=
accessFile
.
read
(
bytes
);
FileUtils
.
writeByteArrayToFile
(
filename
,
bytes
,
0
,
read
);
FileUtils
.
writeByteArrayToFile
(
filename
,
bytes
,
0
,
read
);
}
}
...
...
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