On Mon, 20 Feb 2012 15:54:05 -0700, Michel Bourget <[email protected]> wrote:
> 
> Hi all,
> 
> somehow, I need to introduce handling a "float" value in slurm.conf and, 
> of course,
> carry/dislay/obtain it.  I noticed it's not there. before I go introduce it,
> is there any reason ( I am not aware of ) it's not there ,
> except for the fact " we never needed it before" ?

There is a floating point config handler in the cgroup.conf code.
However, this code doesn't need to transmit the value over the wire.
If you do implement an S_P_FLOAT, it would be nice to also "fix"
the code in xcgroup_read_config, which currently reads the value
as S_P_STRING and converts it.

I also thought I saw some code in the pack routines that tried
to handle double types. You may have seen that already.

Another alternative is to store floats as an integer with a
"multiplier" (e.g. if you need 3 decimal places, have a multiplier
of 1000).

mark
 
> A+
> 
> -- 
> 
> -----------------------------------------------------------
>       Michel Bourget - SGI - Linux Software Engineering
>      "Past BIOS POST, everything else is extra" (travis)
> -----------------------------------------------------------
> 

Reply via email to