kostya-sigar 1.8.8 → 1.8.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85767451a1bf1803940ded1fd7165c4065db46f3
4
- data.tar.gz: d289fe077a5d4c142d00e4feca14beeb4a29dbe7
3
+ metadata.gz: e173cd5f15d09dfc23b9ca474969b78fd285d008
4
+ data.tar.gz: 8217376bea6cb2accb21d5f6c233485a68b6ad2f
5
5
  SHA512:
6
- metadata.gz: 0f3f1a018f9182a69bc0c18cdd1334bbb17aa0d0a025e8c34ee0ceb08f1f3d066488492e46896015a9a85d52a673d526d88da2d8825899b86b1efc7d32976642
7
- data.tar.gz: c43c6e68e84187ec8c01d6e4470f3bf9f82ddf46a522207463747ec74c7321397bb0a229216d41cc7b100383afeb0725fa14cc903dc1c2e1e84a125518a06183
6
+ metadata.gz: 84c9081aa63f8028750eeee2ec77ed9bb438c81e825e9abdae6efe4d15723ce1b533cbd3b7d001fee5a94ba77dbe19df2c48b981cbe2df13ff44e5870e71092e
7
+ data.tar.gz: b2fdb55068bb67533ae95e845c0cb0b0c4bf0245dd4a5cc420623d6338792a7aef8c00c7570077cfb3254250c03d955d19196a5a3cf170f2cfdf762e0f1a8f20
@@ -127,9 +127,7 @@ static int sigar_boot_time_get(sigar_t *sigar)
127
127
  unsigned long seconds_since_1970 = time(NULL);
128
128
  sigar_uptime_t seconds_since_boot;
129
129
  sigar_uptime_get(sigar, &seconds_since_boot);
130
-
131
- sigar->boot_time = seconds_since_1970 - (unsigned long)seconds_since_boot;
132
-
130
+ sigar->boot_time = (unsigned long)((long)seconds_since_1970 - (long)seconds_since_boot.uptime);
133
131
  return SIGAR_OK;
134
132
  }
135
133
 
data/version.properties CHANGED
@@ -1,7 +1,7 @@
1
1
  copyright.year=2004-2011
2
2
  version.major=1
3
3
  version.minor=8
4
- version.maint=8
4
+ version.maint=9
5
5
  version.build=0
6
6
  project.name=kostya-sigar
7
7
  project.author=Doug MacEachern
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kostya-sigar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.8
4
+ version: 1.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug MacEachern