summaryrefslogtreecommitdiff
path: root/src/server/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-12 01:43:56 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-12 01:43:56 +0900
commitc61050244e5e84833688c1aaaea1ebc3be5e72f4 (patch)
tree0a0d3ea6e16f5ed111b0c748ba80351cc52ef611 /src/server/api
parentImprove hashtag trend detection (diff)
downloadsharkey-c61050244e5e84833688c1aaaea1ebc3be5e72f4.tar.gz
sharkey-c61050244e5e84833688c1aaaea1ebc3be5e72f4.tar.bz2
sharkey-c61050244e5e84833688c1aaaea1ebc3be5e72f4.zip
変数調整
Diffstat (limited to 'src/server/api')
-rw-r--r--src/server/api/endpoints/hashtags/trend.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/hashtags/trend.ts b/src/server/api/endpoints/hashtags/trend.ts
index 170580dd80..257718014d 100644
--- a/src/server/api/endpoints/hashtags/trend.ts
+++ b/src/server/api/endpoints/hashtags/trend.ts
@@ -6,8 +6,8 @@ import Note from '../../../../models/note';
*/
const rangeA = 1000 * 60 * 10; // 10分
-const rangeB = 1000 * 60 * 60; // 1時間
-const coefficient = 2; // 「n倍」の部分
+const rangeB = 1000 * 60 * 40; // 40分
+const coefficient = 1.5; // 「n倍」の部分
/**
* Get trends of hashtags