Fix hotseat file log name formatting
Bug: 161001172 Test: Manual Change-Id: Ia03eeb897003267ce608430c94b3b01876939234
This commit is contained in:
1 parent
a8c08584a7
commit
453475d568
1 file changed
+2
-3
+2
-3
@@ -71,10 +71,9 @@ public class HotseatFileLog {
|
||||
}
|
||||
|
||||
private PrintWriter getWriter() {
|
||||
String fName = FILE_NAME_PREFIX + (LOG_DAYS % 10);
|
||||
if (fName.equals(mFileName)) return mCurrentWriter;
|
||||
|
||||
Calendar cal = Calendar.getInstance();
|
||||
String fName = FILE_NAME_PREFIX + (cal.get(Calendar.DAY_OF_YEAR) % 10);
|
||||
if (fName.equals(mFileName)) return mCurrentWriter;
|
||||
|
||||
boolean append = false;
|
||||
File logFile = new File(mLogsDir, fName);
|
||||
|
||||
Reference in new issue
Block a user