流量统计菜单下所有菜单包含包总量和字节总量的列表:

增加两列pps 与 bps
This commit is contained in:
tanghao
2019-01-17 12:43:04 +08:00
parent 3e79c2a0fd
commit c16f9b16bb
13 changed files with 149 additions and 30 deletions

View File

@@ -188,6 +188,20 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
long afterTime = after.getTime();
return (afterTime - beforeTime) / (1000 * 60 * 60 * 24);
}
/**
* 获取两个日期之间的秒数
*
* @param before
* @param after
* @return
*/
public static double getSecondsOfTwoDate(Date before, Date after) {
long beforeTime = before.getTime();
long afterTime = after.getTime();
return (afterTime - beforeTime) / (1000);
}
/**
*
*