{"id":37,"date":"2003-12-11T18:31:34","date_gmt":"2003-12-11T16:31:34","guid":{"rendered":"http:\/\/gnu.inter.it\/blogs\/fabu\/?p=37"},"modified":"2003-12-11T18:31:34","modified_gmt":"2003-12-11T16:31:34","slug":"uptime-overflow","status":"publish","type":"post","link":"https:\/\/fabioinvernizzi.com\/blog\/2003\/12\/11\/uptime-overflow\/","title":{"rendered":"Uptime Overflow"},"content":{"rendered":"<pre>fabio@kalle:~$ uptime\n18:10:52 up 1 day, 22:37,  2 users,  load average: 0.09, 0.18, 0.24<\/pre>\n<p>&#8220;Fabulus hai fatto tu un reboot di kalle?&#8221; mi chiede il Corra.<\/p>\n<pre>fabio@kalle:~$ last reboot\nwtmp begins Tue Dec  2 18:01:21 2003<\/pre>\n<p>Cosa cavolo sta&#8217; succedendo&#8230;<br \/>\nWOW abbiamo mandato in overflow l&#8217;uptime!<\/p>\n<p>La variabile che contiene il valore di uptime \u00e8 definita a 32 bit. <\/p>\n<pre>fabio@gnu:~$ grep jiffies \/usr\/src\/linux-2.4.21\/include\/linux\/sched.h\nextern unsigned long volatile jiffies;<\/pre>\n<p>Visto che il tempo di uptime \u00e8 misurato in jiffies ovvero in centesimi di secondo:<\/p>\n<pre>fabio@gnu:~$ dc -e \"2 32 ^ 100 \/ 3600 24 * \/ p\"\n497<\/pre>\n<p>&#8230;dopo 497 giorni: *overflow*<\/p>\n","protected":false},"excerpt":{"rendered":"<p>fabio@kalle:~$ uptime 18:10:52 up 1 day, 22:37, 2 users, load average: 0.09, 0.18, 0.24 &#8220;Fabulus hai fatto tu un reboot di kalle?&#8221; mi chiede il Corra. fabio@kalle:~$ last reboot wtmp begins Tue Dec 2 18:01:21 2003 Cosa cavolo sta&#8217; succedendo&#8230; WOW abbiamo mandato in overflow l&#8217;uptime! La variabile che contiene il valore di uptime \u00e8 &hellip; <a href=\"https:\/\/fabioinvernizzi.com\/blog\/2003\/12\/11\/uptime-overflow\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Uptime Overflow<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[2],"tags":[3],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-me","tag-hacking"],"_links":{"self":[{"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":0,"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"wp:attachment":[{"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fabioinvernizzi.com\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}