New ncdu, ncdc + btrfssize + misc changes

This commit is contained in:
Yorhel 2016-12-30 13:46:17 +01:00
parent 7cf772d968
commit 07143cfb36
17 changed files with 182 additions and 84 deletions

2
Bug.pm
View file

@ -103,7 +103,7 @@ sub dbSave {
$TUWF::OBJ->dbExec(
"INSERT INTO !s (issue, date, closed, summary, name, email, type, status, message, admin) VALUES ($issue, ?, ?, !l)",
$self->{table}, $id || $self->{table}, time(), $closed?1:0, \@a);
return $TUWF::OBJ->dbRow('SELECT MAX(issue) AS issue FROM !s', $self->{table})->{issue};
return $TUWF::OBJ->dbRow('SELECT issue FROM !s ORDER BY date DESC LIMIT 1 ', $self->{table})->{issue};
}