src/main/java/com/lf/server/helper/PathHelper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/lf/server/helper/StringHelper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/lf/server/helper/PathHelper.java
@@ -25,7 +25,7 @@ private static int sharePath = 1; private final static double D90 = 90; private final static double D85 = 85; private final static Log log = LogFactory.getLog(PathHelper.class); @@ -158,12 +158,12 @@ public void deleteOldPath(String tempPath) { try { double ran = Math.random() * 99; if (ran < D90) { if (ran < D85) { return; } File file = new File(tempPath); String str = StringHelper.YMD__FORMAT.format(new Date()); String str = StringHelper.YMD2_FORMAT.format(new Date()); File[] files = file.listFiles(); for (File f : files) { src/main/java/com/lf/server/helper/StringHelper.java
@@ -30,7 +30,7 @@ /** * 格式化当前系统日期 3 */ public static final SimpleDateFormat YMD__FORMAT = new SimpleDateFormat("yyyyMMdd_"); public static final SimpleDateFormat YMD2_FORMAT = new SimpleDateFormat("yyyyMMdd"); /** * 格式化当前系统日期 4