[torquedev] Walltime.Remaining part 2

Vikentsy Lapa vlapa at newman.bas-net.by
Thu Nov 18 08:15:40 MST 2010


How to determine right format of Walltime.Remaining?

In file torque-2.5.3/src/server/stat_job.c i found declaration

unsigned long remaining = 0;
snprintf(buf,sizeof(buf),"%ld",remaining);

But %ld form string with signed long. Perhaps  %lu more suitable? 

Or declaration change from
   unsigned long remaining = 0;
to
     signed long remaining = 0;

I can't decide what way is correct. Please help. 


More information about the torquedev mailing list