This commit is contained in:
aozhiwei 2022-09-21 21:37:58 +08:00
parent c1c1a57b57
commit 3e81bea0c4

View File

@ -101,9 +101,11 @@ class Fragment {
}
async realloc(conn, daySeconds, nowTime, hourSeconds, allocedFragments) {
const hour = Math.floor((hourSeconds - daySeconds) / 3600);
const hour = Math.floor(hourSeconds / 3600);
const remainHour = Math.min(24, Math.max(1, 24 - hour));
console.log(hour, remainHour);
const allocResult = new Map();
allocResult.set(PVP_TYPE, new Map());
allocResult.set(PVE_TYPE, new Map());