Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178257

[JIRA] (SIGAR-235) Bug in Windows implementation of getUptime()

$
0
0

Ryan Morgan created SIGAR-235:

-


 

             Summary: Bug in Windows implementation of getUptime()

                 Key: SIGAR-235

                 URL: https://jira.hyperic.com/browse/SIGAR-235

             Project: Sigar

          Issue Type: Bug

    Affects Versions: 1.6.4

            Reporter: Ryan Morgan

            Assignee: Doug MacEachern

 

 

 

If for some reason the PDH counters cannot be read in the win32 impl of sigar_uptime_get, the following is returned:

 

/* http://msdn.microsoft.com/en-us/library/ms724408.aspx */
return GetTickCount() / 1000;

 

This method should return a status, not the uptime so it should be:

 

uptime->uptime = GetTickCount() / 1000;
return SIGAR_OK;

 

--

This message is automatically generated by JIRA.

If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.hyperic.com/secure/ContactAdministrators!default.jspa

For more information on JIRA, see: http://www.atlassian.com/software/jira

 

       

 


Viewing all articles
Browse latest Browse all 178257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>