Messages in this thread |  | | Date | Tue, 30 Oct 2001 10:17:15 -0800 | From | J Sloan <> | Subject | Re: Nasty suprise with uptime |
| |
george anzinger wrote:
> J Sloan wrote: > > > Say, if the uptime field were unsigned it could > > reach 995 days uptime before wraparound - > > Actually 497 days is from the max jiffies in an unsigned int. Up time > converts this to seconds... (HZ = 100) jiffies units are 1/HZ.
]Yes, I see now you are right -
Once I bothered to do the arithmetic, I see it's already being treated as an unsigned long, so just changing the type in the struct won't buy us anything....
So much for quick fixes - I wonder what FreeBSD does here...
cu
jjs
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |