Revert "Fix #223. setTotal should take long as a parameter."

This reverts commit 62ea11b0c684f8ee715e5e31a4195a1c28b47a2a.