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 +4 -4
- data/src/os/linux/linux_sigar.c +1 -3
- data/version.properties +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e173cd5f15d09dfc23b9ca474969b78fd285d008
|
4
|
+
data.tar.gz: 8217376bea6cb2accb21d5f6c233485a68b6ad2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84c9081aa63f8028750eeee2ec77ed9bb438c81e825e9abdae6efe4d15723ce1b533cbd3b7d001fee5a94ba77dbe19df2c48b981cbe2df13ff44e5870e71092e
|
7
|
+
data.tar.gz: b2fdb55068bb67533ae95e845c0cb0b0c4bf0245dd4a5cc420623d6338792a7aef8c00c7570077cfb3254250c03d955d19196a5a3cf170f2cfdf762e0f1a8f20
|
data/src/os/linux/linux_sigar.c
CHANGED
@@ -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