Fix integer overflow problem in hbal
Fix integer overflow problem in hbal

waitForJobs in src/Ganeti/Jobs.hs has an integer overflow that (at least on
amd64) causes it to break after waiting for ~10 minutes. This results in hbal
sleeping forever (when compiled with squeeze's ghc 6.12.1) or crashing (when
compiled with precise's ghc 7.4.1) whenever it has to wait ~10 minutes for a
jobset to complete.

Thanks to gjo@google.com for finding the bug and suggesting the fix.

Fixes Issue 717.

Signed-off-by: Michele Tartara <05f7077a2c6cbbdc4af4ba42e3ef89a0df846179@google.com>
Reviewed-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>

apyrgio/snf-ganeti,mbakke/ganeti,andir/ganeti,andir/ganeti,andir/ganeti,ganeti-github-testing/ganeti-test-1,yiannist/ganeti,ganeti/ganeti,yiannist/ganeti,mbakke/ganeti,onponomarev/ganeti,apyrgio/ganeti,ganeti/ganeti,mbakke/ganeti,bitemyapp/ganeti,bitemyapp/ganeti,onponomarev/ganeti,grnet/snf-ganeti,grnet/snf-ganeti,apyrgio/snf-ganeti,apyrgio/ganeti,ganeti/ganeti,leshchevds/ganeti,dimara/ganeti,dimara/ganeti,ganeti-github-testing/ganeti-test-1,leshchevds/ganeti,leshchevds/ganeti,yiannist/ganeti