1
This commit is contained in:
parent
84c840ff81
commit
389a295e74
@ -41,7 +41,7 @@ class Fragment {
|
|||||||
const isAlloced = await this.isAlloced(conn, daySeconds, nowTime, hourSeconds);
|
const isAlloced = await this.isAlloced(conn, daySeconds, nowTime, hourSeconds);
|
||||||
if (!isAlloced) {
|
if (!isAlloced) {
|
||||||
const allocedFragments = await this.fetchAllocedFragments(conn, daySeconds, nowTime);
|
const allocedFragments = await this.fetchAllocedFragments(conn, daySeconds, nowTime);
|
||||||
await this.realloc(conn, daySeconds, hourSeconds, nowTime, allocedFragments);
|
await this.realloc(conn, daySeconds, nowTime, hourSeconds, allocedFragments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@ -176,7 +176,7 @@ class Fragment {
|
|||||||
['fragment_type', this.getFragementType(element['type'])],
|
['fragment_type', this.getFragementType(element['type'])],
|
||||||
['fragment_num', element['item_num']],
|
['fragment_num', element['item_num']],
|
||||||
['alloc_num', element['item_num']],
|
['alloc_num', element['item_num']],
|
||||||
['alloc_time', hourSeconds],
|
['alloc_time', daySeconds + hourSeconds],
|
||||||
['createtime', nowTime],
|
['createtime', nowTime],
|
||||||
['modifytime', nowTime],
|
['modifytime', nowTime],
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user