ºìÁªLinuxÃÅ»§
Linux°ïÖú

uptime ×÷±×·½·¨

·¢²¼Ê±¼ä:2006-03-24 00:12:54À´Ô´:ºìÁª×÷Õß:[Hl.y]
ÎÒÃÇÖªµÀ uptime ÊÇÓÃÀ´ºâÁ¿Ò»Ì¨»úÆ÷¿ª»úʱ¼äµÄ³¤¶ÌµÄ¡£ uptime ÏÔʾµÄʱ¼äÔ½´ó£¬ËµÃ÷ÄãµÄ»úÆ÷Ô½Îȶ¨¡£
µ«ÊÇ£¬ÏÖÔÚÕâ¸ö uptime Ò²¿ÉÒÔ×÷±×¡£ ºÇºÇ£¡Õâ¸öÊÀ½çÕæÊÇûÓа취ÁË¡£

È¥ /usr/src/linux/kernel/timer.c

Ð޸ģº

unsigned long volatile jiffies;

ÔÚÆô¶¯Ê±µÃµ½Ò»¸öºÜ´óµÄ uptime ,¸ÄΪ£º

unsigned long volatile jiffies = 0x00010000;

½«»áÓжîÍâµÄ 655.36 Ãë(´óÔ¼ 10 ·ÖÖÓ) uptime¡£

Äã¿ÉÒÔ×Ô¼ºÈ¥ÊÔһϸü´óµÄֵŶ£¡
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ