Am 08.08.2011 um 04:28 schrieb [email protected]: >> On Linux this could be fixed by specifying a precision of 0 for the >> decimal output: >> >> 649 # define limit_fmt "%.0d%s" >> ... >> I have no access to Solaris to test ... > > I have now been able to try that suggestion for GCC on NetBSD (32bit), > ArchLinux (32bit) and Solaris (32bit) and it does what you hoped on > all three.
Fine, but I'm not sure whether I suggested a suitable solution or only a workaround which introduces a new bug: a real set limit of zero can't be ouptut any longer. Well, a real limit for h_vmem or h_rt being 0 isn't reasonable at all... You would have to test against 0 and output 0 as a string in this case to get the correct output. I think the original author tried to avoid several if-then-else tests there, but maybe such an implementation is the only one being correct. -- Reuti > -- > Kevin M. Buckley Room: CO327 > School of Engineering and Phone: +64 4 463 5971 > Computer Science > Victoria University of Wellington > New Zealand > > _______________________________________________ > users mailing list > [email protected] > https://gridengine.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
