Fixed precision loss in post disk space usage
This commit is contained in:
parent
cd688b25a3
commit
f1647a5f7b
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class PostDao extends AbstractDao implements ICrudDao
|
|||
public function getTotalFileSize()
|
||||
{
|
||||
$query = $this->pdo->from($this->tableName)->select('SUM(originalFileSize) AS __sum');
|
||||
return intval(iterator_to_array($query)[0]['__sum']);
|
||||
return iterator_to_array($query)[0]['__sum'];
|
||||
}
|
||||
|
||||
public function findByName($name)
|
||||
|
|
Loading…
Reference in a new issue