kostya-sigar 2.0.9 → 2.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/Rakefile +5 -5
- data/src/os/darwin/darwin_sigar.c +44 -44
- data/src/sigar_util.c +1 -0
- data/version.properties +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c98f6ef287ea30780018af69cba9a44e5cbee65e61586c69de7102b9588ecc76
|
4
|
+
data.tar.gz: 1fca9dd7ca8025f334279f7e8cf826a52ecb77bf280c87b15e3cd93676a33c4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91013af10dd8d09ba44aa7e2dc4e76e4e7e13097ff286701d821d4c5a6f017e6ee8777ec4249c95923e853ab19e60e9bcc0f31888db058b287782602bcb49c3
|
7
|
+
data.tar.gz: 490e7ac5e17f92cf9f4b53cdae38e9ae27dcddda76029562f78d7172e09b2a3d93d29cbb18139f6d52b82ae4f6f4058d4d715e5e56690cde08c7888134ca0d56
|
data/README.md
CHANGED
@@ -4,6 +4,12 @@ Fork of hyperic/sigar with some fixes. Support only ruby binding. Part of [Eye g
|
|
4
4
|
|
5
5
|
## Fixed:
|
6
6
|
|
7
|
+
### [2.0.11] 10-09-2024
|
8
|
+
* Fixing build issue on newer linux and also issues with newer Ruby [#16](https://github.com/kostya/sigar/pull/16)([commit](https://github.com/kostya/sigar/pull/16/commits/8b887b2380c4aadea82402904d9c1131bbb9c521))
|
9
|
+
|
10
|
+
### [2.0.10] 31-10-2021
|
11
|
+
* Fix compilation on MacOS 11.3.1 [#11](https://github.com/kostya/sigar/issues/11)([commit](https://github.com/kostya/sigar/commit/49a9aeeff54e97ac6f41d464c30ff6c8adf4bcf4))
|
12
|
+
|
7
13
|
### [2.0.9] 28-06-2021
|
8
14
|
* Fix compilation on FreeBSD 13 [#10](https://github.com/kostya/sigar/issues/10)([commit](https://github.com/kostya/sigar/commit/b78b558fb756a75dc7d6cbf704423be3c7098ae5))
|
9
15
|
|
data/Rakefile
CHANGED
@@ -51,15 +51,15 @@ end
|
|
51
51
|
desc 'Build sigar extension'
|
52
52
|
task :build do
|
53
53
|
in_ext()
|
54
|
-
unless File.
|
54
|
+
unless File.exist? "Makefile"
|
55
55
|
unless system("ruby extconf.rb")
|
56
56
|
STDERR.puts "Failed to configure"
|
57
|
-
|
57
|
+
next
|
58
58
|
end
|
59
59
|
end
|
60
60
|
unless system(MAKE)
|
61
61
|
STDERR.puts 'Failed to ' + MAKE
|
62
|
-
|
62
|
+
next
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
@@ -75,13 +75,13 @@ end
|
|
75
75
|
desc 'Clean sigar extension'
|
76
76
|
task :clean do
|
77
77
|
in_ext()
|
78
|
-
system(MAKE + ' clean') if File.
|
78
|
+
system(MAKE + ' clean') if File.exist? "Makefile"
|
79
79
|
end
|
80
80
|
|
81
81
|
desc 'Dist Clean sigar extension'
|
82
82
|
task :distclean do
|
83
83
|
in_ext()
|
84
|
-
system(MAKE + ' distclean') if File.
|
84
|
+
system(MAKE + ' distclean') if File.exist? "Makefile"
|
85
85
|
end
|
86
86
|
|
87
87
|
desc 'Run sigar examples (test)'
|
@@ -3310,20 +3310,20 @@ sigar_tcp_get(sigar_t *sigar,
|
|
3310
3310
|
return SIGAR_OK;
|
3311
3311
|
}
|
3312
3312
|
|
3313
|
-
#ifndef SIGAR_FREEBSD5_NFSSTAT
|
3314
|
-
static int get_nfsstats(struct nfsstats *stats)
|
3315
|
-
{
|
3316
|
-
|
3317
|
-
|
3318
|
-
|
3319
|
-
|
3320
|
-
|
3321
|
-
|
3322
|
-
|
3323
|
-
|
3324
|
-
|
3325
|
-
}
|
3326
|
-
#endif
|
3313
|
+
// #ifndef SIGAR_FREEBSD5_NFSSTAT
|
3314
|
+
// static int get_nfsstats(struct nfsstats *stats)
|
3315
|
+
// {
|
3316
|
+
// size_t len = sizeof(*stats);
|
3317
|
+
// int mib[] = { CTL_VFS, 2, NFS_NFSSTATS };
|
3318
|
+
|
3319
|
+
// if (sysctl(mib, NMIB(mib), stats, &len, NULL, 0) < 0) {
|
3320
|
+
// return errno;
|
3321
|
+
// }
|
3322
|
+
// else {
|
3323
|
+
// return SIGAR_OK;
|
3324
|
+
// }
|
3325
|
+
// }
|
3326
|
+
// #endif
|
3327
3327
|
|
3328
3328
|
#if defined(__OpenBSD__)
|
3329
3329
|
typedef uint64_t rpc_cnt_t;
|
@@ -3372,25 +3372,25 @@ int sigar_nfs_server_v2_get(sigar_t *sigar,
|
|
3372
3372
|
int sigar_nfs_client_v3_get(sigar_t *sigar,
|
3373
3373
|
sigar_nfs_client_v3_t *nfs)
|
3374
3374
|
{
|
3375
|
-
#ifdef SIGAR_FREEBSD5_NFSSTAT
|
3376
|
-
|
3377
|
-
|
3375
|
+
// #ifdef SIGAR_FREEBSD5_NFSSTAT
|
3376
|
+
// struct nfsstats stats;
|
3377
|
+
// size_t size = sizeof(stats);
|
3378
3378
|
|
3379
|
-
|
3380
|
-
|
3381
|
-
|
3379
|
+
// if (sysctlbyname("vfs.nfs.nfsstats", &stats, &size, NULL, 0) == -1) {
|
3380
|
+
// return errno;
|
3381
|
+
// }
|
3382
3382
|
|
3383
|
-
|
3384
|
-
#else
|
3385
|
-
|
3386
|
-
|
3383
|
+
// map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.rpccnt[0]);
|
3384
|
+
// #else
|
3385
|
+
// int status;
|
3386
|
+
// struct nfsstats stats;
|
3387
3387
|
|
3388
|
-
|
3389
|
-
|
3390
|
-
|
3388
|
+
// if ((status = get_nfsstats(&stats)) != SIGAR_OK) {
|
3389
|
+
// return status;
|
3390
|
+
// }
|
3391
3391
|
|
3392
|
-
|
3393
|
-
#endif
|
3392
|
+
// map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.rpccnt[0]);
|
3393
|
+
// #endif
|
3394
3394
|
|
3395
3395
|
return SIGAR_OK;
|
3396
3396
|
}
|
@@ -3398,25 +3398,25 @@ int sigar_nfs_client_v3_get(sigar_t *sigar,
|
|
3398
3398
|
int sigar_nfs_server_v3_get(sigar_t *sigar,
|
3399
3399
|
sigar_nfs_server_v3_t *nfs)
|
3400
3400
|
{
|
3401
|
-
#ifdef SIGAR_FREEBSD5_NFSSTAT
|
3402
|
-
|
3403
|
-
|
3401
|
+
// #ifdef SIGAR_FREEBSD5_NFSSTAT
|
3402
|
+
// struct nfsrvstats stats;
|
3403
|
+
// size_t size = sizeof(stats);
|
3404
3404
|
|
3405
|
-
|
3406
|
-
|
3407
|
-
|
3405
|
+
// if (sysctlbyname("vfs.nfsrv.nfsrvstats", &stats, &size, NULL, 0) == -1) {
|
3406
|
+
// return errno;
|
3407
|
+
// }
|
3408
3408
|
|
3409
|
-
|
3410
|
-
#else
|
3411
|
-
|
3412
|
-
|
3409
|
+
// map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.srvrpccnt[0]);
|
3410
|
+
// #else
|
3411
|
+
// int status;
|
3412
|
+
// struct nfsstats stats;
|
3413
3413
|
|
3414
|
-
|
3415
|
-
|
3416
|
-
|
3414
|
+
// if ((status = get_nfsstats(&stats)) != SIGAR_OK) {
|
3415
|
+
// return status;
|
3416
|
+
// }
|
3417
3417
|
|
3418
|
-
|
3419
|
-
#endif
|
3418
|
+
// map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.srvrpccnt[0]);
|
3419
|
+
// #endif
|
3420
3420
|
|
3421
3421
|
return SIGAR_OK;
|
3422
3422
|
}
|
data/src/sigar_util.c
CHANGED
data/version.properties
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kostya-sigar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug MacEachern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: System Information Gatherer And Reporter
|
14
14
|
email: sigar-users@hyperic.org
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.1.
|
85
|
+
rubygems_version: 3.1.6
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: System Information Gatherer And Reporter
|