Skip to content

Commit

Permalink
Merge pull request #1383 from meganz/fix/overflow-int64
Browse files Browse the repository at this point in the history
Fix overflow of integer
  • Loading branch information
sergiohs84 authored Mar 11, 2019
2 parents 7e38fe1 + d644af5 commit 6ecca6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3621,7 +3621,7 @@ void CommandGetUserQuota::procresult()
LOG_debug << "Account full";
client->activateoverquota(0);
}
else if (details->storage_used >= (details->storage_max * uslw / 10000))
else if (details->storage_used >= (details->storage_max / 10000 * uslw))
{
LOG_debug << "Few storage space available";
client->setstoragestatus(STORAGE_ORANGE);
Expand Down

0 comments on commit 6ecca6a

Please sign in to comment.