integer division  ?
I *think* this should be  ``(nsample * 6) // 10``