{"id":3960,"date":"2010-06-25T08:45:42","date_gmt":"2010-06-25T13:45:42","guid":{"rendered":"http:\/\/granades.com\/?p=3960"},"modified":"2010-06-25T08:41:57","modified_gmt":"2010-06-25T13:41:57","slug":"changing-uptime-to-use-more-relevant-units","status":"publish","type":"post","link":"https:\/\/granades.com\/?p=3960","title":{"rendered":"Changing Uptime to Use More Relevant Units"},"content":{"rendered":"<p><code><br \/>\n[stephen@sargent ~]$ uptime<br \/>\n8:58:08 up 10 Isner-Mahuts, 06:10,  1 user,  load average: 0.00, 0.00, 0.00<br \/>\n<\/code><\/p>\n<p>For those of you wanting to actually make the change to uptime.c, note that, instead of<\/p>\n<p><code><br \/>\nupdays = uptime \/ 86400;<br \/>\nuphours = (uptime - (updays * 86400)) \/ 3600;<br \/>\nupmins = (uptime - (updays * 86400) - (uphours * 3600)) \/ 60;<br \/>\n<\/code><\/p>\n<p>use something like<\/p>\n<p><code><br \/>\nupims = uptime \/ 39900;<br \/>\nuphours = (uptime - (upims * 39900)) \/ 3600;<br \/>\nupmins = (uptime - (upims * 39900) - (uphours * 3600)) \/ 60;<br \/>\n<\/code><\/p>\n<p>(Note: it&#8217;s a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Isner%E2%80%93Mahut_match_at_the_2010_Wimbledon_Championships\">tennis joke<\/a>. And a Unix joke. I can only imagine the size of the overlap in <i>that<\/i> Venn diagram.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \/ 86400; uphours = (uptime &#8211; (updays * 86400)) \/ 3600; upmins = (uptime &#8211; (updays * 86400) &#8211; (uphours * &hellip; <a href=\"https:\/\/granades.com\/?p=3960\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Changing Uptime to Use More Relevant Units<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-3960","post","type-post","status-publish","format-standard","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \/ 86400; uphours = (uptime - (updays * 86400)) \/ 3600; upmins = (uptime - (updays * 86400) - (uphours *\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/granades.com\/?p=3960\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Live Granades - Just another WordPress site\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Changing Uptime to Use More Relevant Units - Live Granades\" \/>\n\t\t<meta property=\"og:description\" content=\"[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \/ 86400; uphours = (uptime - (updays * 86400)) \/ 3600; upmins = (uptime - (updays * 86400) - (uphours *\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/granades.com\/?p=3960\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-06-25T13:45:42+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2010-06-25T13:41:57+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Changing Uptime to Use More Relevant Units - Live Granades\" \/>\n\t\t<meta name=\"twitter:description\" content=\"[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \/ 86400; uphours = (uptime - (updays * 86400)) \/ 3600; upmins = (uptime - (updays * 86400) - (uphours *\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/granades.com\\\/?p=3960#blogposting\",\"name\":\"Changing Uptime to Use More Relevant Units - Live Granades\",\"headline\":\"Changing Uptime to Use More Relevant Units\",\"author\":{\"@id\":\"https:\\\/\\\/granades.com\\\/?author=3#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/granades.com\\\/#organization\"},\"datePublished\":\"2010-06-25T08:45:42+00:00\",\"dateModified\":\"2010-06-25T08:41:57+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/granades.com\\\/?p=3960#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/granades.com\\\/?p=3960#webpage\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/granades.com\\\/?p=3960#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/granades.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/granades.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/granades.com\\\/?p=3960#listItem\",\"name\":\"Changing Uptime to Use More Relevant Units\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/granades.com\\\/?p=3960#listItem\",\"position\":2,\"name\":\"Changing Uptime to Use More Relevant Units\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/granades.com#listItem\",\"name\":\"Home\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/granades.com\\\/#organization\",\"name\":\"Live Granades\",\"description\":\"Just another WordPress site\",\"url\":\"https:\\\/\\\/granades.com\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/granades.com\\\/?author=3#author\",\"url\":\"https:\\\/\\\/granades.com\\\/?author=3\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/granades.com\\\/?p=3960#webpage\",\"url\":\"https:\\\/\\\/granades.com\\\/?p=3960\",\"name\":\"Changing Uptime to Use More Relevant Units - Live Granades\",\"description\":\"[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \\\/ 86400; uphours = (uptime - (updays * 86400)) \\\/ 3600; upmins = (uptime - (updays * 86400) - (uphours *\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/granades.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/granades.com\\\/?p=3960#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/granades.com\\\/?author=3#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/granades.com\\\/?author=3#author\"},\"datePublished\":\"2010-06-25T08:45:42+00:00\",\"dateModified\":\"2010-06-25T08:41:57+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/granades.com\\\/#website\",\"url\":\"https:\\\/\\\/granades.com\\\/\",\"name\":\"Live Granades\",\"description\":\"Just another WordPress site\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/granades.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Changing Uptime to Use More Relevant Units - Live Granades","description":"[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \/ 86400; uphours = (uptime - (updays * 86400)) \/ 3600; upmins = (uptime - (updays * 86400) - (uphours *","canonical_url":"https:\/\/granades.com\/?p=3960","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/granades.com\/?p=3960#blogposting","name":"Changing Uptime to Use More Relevant Units - Live Granades","headline":"Changing Uptime to Use More Relevant Units","author":{"@id":"https:\/\/granades.com\/?author=3#author"},"publisher":{"@id":"https:\/\/granades.com\/#organization"},"datePublished":"2010-06-25T08:45:42+00:00","dateModified":"2010-06-25T08:41:57+00:00","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/granades.com\/?p=3960#webpage"},"isPartOf":{"@id":"https:\/\/granades.com\/?p=3960#webpage"}},{"@type":"BreadcrumbList","@id":"https:\/\/granades.com\/?p=3960#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/granades.com#listItem","position":1,"name":"Home","item":"https:\/\/granades.com","nextItem":{"@type":"ListItem","@id":"https:\/\/granades.com\/?p=3960#listItem","name":"Changing Uptime to Use More Relevant Units"}},{"@type":"ListItem","@id":"https:\/\/granades.com\/?p=3960#listItem","position":2,"name":"Changing Uptime to Use More Relevant Units","previousItem":{"@type":"ListItem","@id":"https:\/\/granades.com#listItem","name":"Home"}}]},{"@type":"Organization","@id":"https:\/\/granades.com\/#organization","name":"Live Granades","description":"Just another WordPress site","url":"https:\/\/granades.com\/"},{"@type":"Person","@id":"https:\/\/granades.com\/?author=3#author","url":"https:\/\/granades.com\/?author=3"},{"@type":"WebPage","@id":"https:\/\/granades.com\/?p=3960#webpage","url":"https:\/\/granades.com\/?p=3960","name":"Changing Uptime to Use More Relevant Units - Live Granades","description":"[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \/ 86400; uphours = (uptime - (updays * 86400)) \/ 3600; upmins = (uptime - (updays * 86400) - (uphours *","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/granades.com\/#website"},"breadcrumb":{"@id":"https:\/\/granades.com\/?p=3960#breadcrumblist"},"author":{"@id":"https:\/\/granades.com\/?author=3#author"},"creator":{"@id":"https:\/\/granades.com\/?author=3#author"},"datePublished":"2010-06-25T08:45:42+00:00","dateModified":"2010-06-25T08:41:57+00:00"},{"@type":"WebSite","@id":"https:\/\/granades.com\/#website","url":"https:\/\/granades.com\/","name":"Live Granades","description":"Just another WordPress site","inLanguage":"en-US","publisher":{"@id":"https:\/\/granades.com\/#organization"}}]},"og:locale":"en_US","og:site_name":"Live Granades - Just another WordPress site","og:type":"article","og:title":"Changing Uptime to Use More Relevant Units - Live Granades","og:description":"[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \/ 86400; uphours = (uptime - (updays * 86400)) \/ 3600; upmins = (uptime - (updays * 86400) - (uphours *","og:url":"https:\/\/granades.com\/?p=3960","article:published_time":"2010-06-25T13:45:42+00:00","article:modified_time":"2010-06-25T13:41:57+00:00","twitter:card":"summary","twitter:title":"Changing Uptime to Use More Relevant Units - Live Granades","twitter:description":"[stephen@sargent ~]$ uptime 8:58:08 up 10 Isner-Mahuts, 06:10, 1 user, load average: 0.00, 0.00, 0.00 For those of you wanting to actually make the change to uptime.c, note that, instead of updays = uptime \/ 86400; uphours = (uptime - (updays * 86400)) \/ 3600; upmins = (uptime - (updays * 86400) - (uphours *"},"aioseo_meta_data":{"post_id":"3960","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-06-26 01:02:45","updated":"2025-11-03 06:44:17","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/granades.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tChanging Uptime to Use More Relevant Units\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/granades.com"},{"label":"Changing Uptime to Use More Relevant Units","link":"https:\/\/granades.com\/?p=3960"}],"_links":{"self":[{"href":"https:\/\/granades.com\/index.php?rest_route=\/wp\/v2\/posts\/3960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/granades.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/granades.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/granades.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/granades.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3960"}],"version-history":[{"count":8,"href":"https:\/\/granades.com\/index.php?rest_route=\/wp\/v2\/posts\/3960\/revisions"}],"predecessor-version":[{"id":3968,"href":"https:\/\/granades.com\/index.php?rest_route=\/wp\/v2\/posts\/3960\/revisions\/3968"}],"wp:attachment":[{"href":"https:\/\/granades.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/granades.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/granades.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}