diff --git a/webapp/models/FragmentPool.php b/webapp/models/FragmentPool.php index 7b2b204e..4fa87264 100644 --- a/webapp/models/FragmentPool.php +++ b/webapp/models/FragmentPool.php @@ -16,7 +16,6 @@ class FragmentPool extends BaseModel { self::decNum($fragmentId); return $fragmentId; } - return 110101; return 0; } @@ -29,7 +28,6 @@ class FragmentPool extends BaseModel { self::decNum($fragmentId); return $fragmentId; } - return 110121; return 0; } @@ -40,7 +38,6 @@ class FragmentPool extends BaseModel { foreach ($items as $item) { $num += $item['fragment_num']; } - return 100; return $num; } @@ -51,7 +48,6 @@ class FragmentPool extends BaseModel { foreach ($items as $item) { $num += $item['fragment_num']; } - return 100; return $num; } @@ -91,6 +87,9 @@ class FragmentPool extends BaseModel { 'fragment_num' => function () { return 'GREATEST(0, fragment_num - 1)'; }, + 'alloced_num' => function () { + return 'alloced_num + 1'; + } ) ); }