From 6e365a48a83e628759df3a5f25b3db97009c9f26 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 16 四月 2021 19:49:49 +0800
Subject: [PATCH] 影视豆系统完善

---
 src/test/java/com/hxh/spring/test/LogTest.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/test/java/com/hxh/spring/test/LogTest.java b/src/test/java/com/hxh/spring/test/LogTest.java
index d763999..a7156aa 100644
--- a/src/test/java/com/hxh/spring/test/LogTest.java
+++ b/src/test/java/com/hxh/spring/test/LogTest.java
@@ -110,7 +110,7 @@
     public void videoPlay() throws Exception {
         Set<String> sets = new HashSet<>();
         Gson gson = new Gson();
-        Scanner scanner = new Scanner(new FileInputStream("C:\\Users\\Administrator\\Desktop\\鏃ュ織\\甯冧父鎾斁\\play_2021_03_23.log"));
+        Scanner scanner = new Scanner(new FileInputStream("C:\\Users\\Administrator\\Desktop\\鏃ュ織\\甯冧父鎾斁\\play_2021_04_07.log"));
         Map<String, Integer> countMap = new HashMap<>();
         List<String> videoList = new ArrayList<>();
         while (scanner.hasNextLine()) {
@@ -179,7 +179,7 @@
     @Test
     public void userActive() throws Exception {
         Gson gson = new Gson();
-        List<String> list = loadLog("C:\\Users\\Administrator\\Desktop\\鏃ュ織\\甯冧父鎾斁\\active_2021_03_23.log");
+        List<String> list = loadLog("C:\\Users\\Administrator\\Desktop\\鏃ュ織\\甯冧父鎾斁\\active_2021_04_07.log");
         Map<String, List<UserActiveLogInfo>> map = new HashMap<>();
         for (String st : list) {
             UserActiveLogInfo activeLogInfo = gson.fromJson(st, UserActiveLogInfo.class);
@@ -247,6 +247,7 @@
         System.out.println("鎼滅储涔嬪悗鎾斁鎬绘暟锛�" + searchPlayCount + "姣斾緥涓猴細" + getPercent(map.size(), searchPlayCount));
         System.out.println("鎼滅储涔嬪悗鏈挱鏀炬�绘暟锛�" + searchNoPlay + "姣斾緥涓猴細" + getPercent(map.size(), searchNoPlay));
         System.out.println("鏈悳绱篃鏈挱鏀炬�绘暟锛�" + noSearchAndPlay + "姣斾緥涓猴細" + getPercent(map.size(), noSearchAndPlay));
+        System.out.println("鎼滅储婊℃剰搴︼細" + getPercent(searchCount, searchPlayCount));
         System.out.println("鏈兘鎴愬姛杩涘叆棣栭〉鎬绘暟锛�" + noComeInCount + "姣斾緥涓猴細" + getPercent(map.size(), noComeInCount));
         System.out.println("杩涘叆棣栭〉鍚庢棤鍔ㄤ綔鐨勬�绘暟锛�" + comeinAndNoAction + "姣斾緥涓猴細" + getPercent(map.size(), comeinAndNoAction));
     }

--
Gitblit v1.8.0