Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 192300

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

$
0
0

 

     https://jira.hyperic.com/browse/SIGAR-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

 

Nevenka Bierny updated SIGAR-235:

-


 

    Description:

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;

 

  was:

 

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;

 

          Cases: 12205819308

   

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 192300

Trending Articles



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