kostya-sigar 2.0.6.test → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTYxNjIwMmE3YzJmOWJmY2ZiZWU3NjI1Yzc3YjdkMWI0N2JjN2QyZA==
5
- data.tar.gz: !binary |-
6
- ZDc4ZmJkZjRiY2JkOGRkZTIyZmQ0MTkzYjRjOGViNTkxN2UzZjk0ZA==
2
+ SHA256:
3
+ metadata.gz: d95af514f63ab1058e8264a645139e16f8c9e6c524b5f9fa4e83d8c92d64ecb0
4
+ data.tar.gz: 818abda4d2c9735457a63c23595d58d223069ba6718498604b5696316a34be05
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MjM1YWFhNjBkZmMwN2E3ZmMzZmM0YzgyMWQ5M2FhODYwNjRmMDBhN2I0NDc3
10
- OGMzMzFjZjk0Mjc5NTQ2ZTdiMDdiNzA0ODEyZjY4Mzk4ODA1NDZiYzlkNmRm
11
- OGI2ODk1ZDE1MGI4NDA1MTQzNTA1Y2FkMjAyMDY1NmYxY2JlYTE=
12
- data.tar.gz: !binary |-
13
- ZjFmOGEwM2UyZmJkOGY0YjY0ZDdmNTc5YzdkN2RhNjFiZThkNjJjNDY2MzAw
14
- YTc5MzQ3YmRiMTZkZjQ5OTM3YWJjNzQ1MzcwZWVjYmU2MTU4Njk1OWQ0Yjc1
15
- NjMxOGYzYWE3N2U4ZmY4OWMyZDUxMjY1YjA3NmNhYjg0NjA2ZDA=
6
+ metadata.gz: 5930bb646cc80a6e9205069c315c3f7241f490742fc2bd728c6d7b29d3f2f5d7b8906d36bced16dc6b268ad1684ce81a256a9fe67e7a43758dfa2cd56a51d15b
7
+ data.tar.gz: 181e4f023cea632ad3aaaba9ddcec499ff5911763d017f435b7d7fd80abd27a46d1eccfb11730bfa502dad26fbc02ea2c020d7e7047bf4b49097cf47a2c76834
data/README.md CHANGED
@@ -4,6 +4,18 @@ 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.10] 31-10-2021
8
+ * Fix compilation on MacOS 11.3.1 [#11](https://github.com/kostya/sigar/issues/11)([commit](https://github.com/kostya/sigar/commit/49a9aeeff54e97ac6f41d464c30ff6c8adf4bcf4))
9
+
10
+ ### [2.0.9] 28-06-2021
11
+ * Fix compilation on FreeBSD 13 [#10](https://github.com/kostya/sigar/issues/10)([commit](https://github.com/kostya/sigar/commit/b78b558fb756a75dc7d6cbf704423be3c7098ae5))
12
+
13
+ ### [2.0.8] 02-10-2020
14
+ * Fix compilation on MacOS [#8](https://github.com/kostya/sigar/issues/8)([commit](https://github.com/kostya/sigar/pull/9/commits/ad39547629fa328e115f7d7bc3c7c358247d1961))
15
+
16
+ ### [2.0.6] 18-01-2019
17
+ * Fix compilation on FreeBSD 12 [#6](https://github.com/kostya/sigar/issues/6)([commit](https://github.com/kostya/sigar/commit/2bb67fa1bf6f6f0ddc2626cf028bcc0e4a8cb377))
18
+
7
19
  ### [2.0.5] 02-12-2018
8
20
  * Fix compilation with musl libc [#4](https://github.com/kostya/sigar/pull/4)([commit](https://github.com/kostya/sigar/pull/4/commits/cd07923dd2ed34aca353dfd182f2f85c13853fd9))
9
21
 
data/Rakefile CHANGED
@@ -20,14 +20,13 @@ MAKE = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
20
20
 
21
21
  spec = Gem::Specification.new do |s|
22
22
  s.name = GEM
23
- s.version = props['version.major'] + '.' + props['version.minor'] + '.' + props['version.maint'] + '.test'
23
+ s.version = props['version.major'] + '.' + props['version.minor'] + '.' + props['version.maint']
24
24
  s.summary = props['project.summary']
25
25
  s.description = s.summary
26
26
  s.author = props['project.author']
27
27
  s.email = props['project.email']
28
28
  s.homepage = props['project.homepage']
29
29
  s.platform = Gem::Platform::RUBY
30
- s.has_rdoc = false
31
30
  s.extensions = 'bindings/ruby/extconf.rb'
32
31
  s.files =
33
32
  %w(LICENSE NOTICE README.md Rakefile version.properties) +
@@ -24,6 +24,7 @@
24
24
  #endif
25
25
 
26
26
  #include <errno.h>
27
+ #include <ctype.h>
27
28
  #include "sigar.h"
28
29
  #include "sigar_fileinfo.h"
29
30
  #include "sigar_format.h"
@@ -1965,7 +1965,7 @@ int sigar_proc_fd_get(sigar_t *sigar, sigar_pid_t pid,
1965
1965
  free(ofiles);
1966
1966
  #else
1967
1967
  /* seems the same as the above */
1968
- procfd->total = filed.fd_lastfile;
1968
+ procfd->total = filed.fd_nfiles;
1969
1969
  #endif
1970
1970
 
1971
1971
  return SIGAR_OK;
@@ -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
- size_t len = sizeof(*stats);
3317
- int mib[] = { CTL_VFS, 2, NFS_NFSSTATS };
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
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
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
- struct nfsstats stats;
3377
- size_t size = sizeof(stats);
3375
+ // #ifdef SIGAR_FREEBSD5_NFSSTAT
3376
+ // struct nfsstats stats;
3377
+ // size_t size = sizeof(stats);
3378
3378
 
3379
- if (sysctlbyname("vfs.nfs.nfsstats", &stats, &size, NULL, 0) == -1) {
3380
- return errno;
3381
- }
3379
+ // if (sysctlbyname("vfs.nfs.nfsstats", &stats, &size, NULL, 0) == -1) {
3380
+ // return errno;
3381
+ // }
3382
3382
 
3383
- map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.rpccnt[0]);
3384
- #else
3385
- int status;
3386
- struct nfsstats stats;
3383
+ // map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.rpccnt[0]);
3384
+ // #else
3385
+ // int status;
3386
+ // struct nfsstats stats;
3387
3387
 
3388
- if ((status = get_nfsstats(&stats)) != SIGAR_OK) {
3389
- return status;
3390
- }
3388
+ // if ((status = get_nfsstats(&stats)) != SIGAR_OK) {
3389
+ // return status;
3390
+ // }
3391
3391
 
3392
- map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.rpccnt[0]);
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
- struct nfsrvstats stats;
3403
- size_t size = sizeof(stats);
3401
+ // #ifdef SIGAR_FREEBSD5_NFSSTAT
3402
+ // struct nfsrvstats stats;
3403
+ // size_t size = sizeof(stats);
3404
3404
 
3405
- if (sysctlbyname("vfs.nfsrv.nfsrvstats", &stats, &size, NULL, 0) == -1) {
3406
- return errno;
3407
- }
3405
+ // if (sysctlbyname("vfs.nfsrv.nfsrvstats", &stats, &size, NULL, 0) == -1) {
3406
+ // return errno;
3407
+ // }
3408
3408
 
3409
- map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.srvrpccnt[0]);
3410
- #else
3411
- int status;
3412
- struct nfsstats stats;
3409
+ // map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.srvrpccnt[0]);
3410
+ // #else
3411
+ // int status;
3412
+ // struct nfsstats stats;
3413
3413
 
3414
- if ((status = get_nfsstats(&stats)) != SIGAR_OK) {
3415
- return status;
3416
- }
3414
+ // if ((status = get_nfsstats(&stats)) != SIGAR_OK) {
3415
+ // return status;
3416
+ // }
3417
3417
 
3418
- map_nfs_stats((sigar_nfs_v3_t *)nfs, &stats.srvrpccnt[0]);
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/version.properties CHANGED
@@ -1,8 +1,8 @@
1
1
  copyright.year=2004-2011
2
2
  version.major=2
3
3
  version.minor=0
4
- version.maint=6
5
- version.build=test
4
+ version.maint=10
5
+ version.build=0
6
6
  project.name=kostya-sigar
7
7
  project.author=Doug MacEachern
8
8
  project.email=sigar-users@hyperic.org
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.6.test
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug MacEachern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-18 00:00:00.000000000 Z
11
+ date: 2021-10-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: System Information Gatherer And Reporter
14
14
  email: sigar-users@hyperic.org
@@ -73,17 +73,16 @@ require_paths:
73
73
  - lib
74
74
  required_ruby_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - ! '>='
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ! '>'
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: 1.3.1
83
+ version: '0'
84
84
  requirements: []
85
- rubyforge_project:
86
- rubygems_version: 2.6.6
85
+ rubygems_version: 3.1.2
87
86
  signing_key:
88
87
  specification_version: 4
89
88
  summary: System Information Gatherer And Reporter