kostya-sigar 1.8.9 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +12 -2
- data/src/os/linux/linux_sigar.c +3 -3
- data/version.properties +3 -3
- 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: f258b97c2fc6948581aa1e72f9bec5ea5781cbc4
|
4
|
+
data.tar.gz: ecff36d0bde36ee9b14e80b185d254370864dcbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a877c031215303e49a79c134540d9def7b3296928b3d9fb4609bef7d6af047e53f8ac1c8927a15353b3b5f0abaf688100f2838346c9eeef0b0000c71a8e8ce97
|
7
|
+
data.tar.gz: 72959a3cff28689427e3ccf5f27f230e2b9c742a402322c8f882c2d5bc0e8c9c4549a0c18d6ed2374cf74b251e26d308aa89fefbf485d97258ecf759cf3d025e
|
data/README
CHANGED
@@ -1,2 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
|
2
|
+
System Information Gatherer And Reporter. Fork of https://github.com/hyperic/sigar.
|
3
|
+
|
4
|
+
Fixed:
|
5
|
+
|
6
|
+
* sigfaulted logger, #28 (c2a1af)
|
7
|
+
* bug undefined symbol: sigar_skip_token, #60 (dfe8fe)
|
8
|
+
* bug detection boot_time on linux (now it works like gnu ps, and fix some issues with process start_time) (660259)
|
9
|
+
|
10
|
+
Installation:
|
11
|
+
|
12
|
+
$ gem install kostya-sigar
|
data/src/os/linux/linux_sigar.c
CHANGED
@@ -126,9 +126,9 @@ static int sigar_boot_time_get(sigar_t *sigar)
|
|
126
126
|
{
|
127
127
|
unsigned long seconds_since_1970 = time(NULL);
|
128
128
|
sigar_uptime_t seconds_since_boot;
|
129
|
-
sigar_uptime_get(sigar, &seconds_since_boot);
|
130
|
-
sigar->boot_time =
|
131
|
-
return
|
129
|
+
int status = sigar_uptime_get(sigar, &seconds_since_boot);
|
130
|
+
sigar->boot_time = seconds_since_1970 - (unsigned long)seconds_since_boot.uptime;
|
131
|
+
return status;
|
132
132
|
}
|
133
133
|
|
134
134
|
int sigar_os_open(sigar_t **sigar)
|
data/version.properties
CHANGED