bot_scaling: Change cores_per_bot to support float

On shared core bots this value can be a percentage of a core, not a full
integer, therefore we need to support float.  This is the same as
memory, in which we can expect values that are not ints.

This is only used in calculations today, and we're only populating it with ints now, so this should be transparent.

Bug: chromium:1090544
Change-Id: I1c950768a41e61ab15ce7efa0cffc2be73124619
Reviewed-by: Sean Abraham <>
Commit-Queue: Mike Nichols <>
Tested-by: Mike Nichols <>
2 files changed