Update to govc-0.18.0.
This commit is contained in:
parent
faecc3934a
commit
5eec7ba3d6
@ -1,14 +1,12 @@
|
||||
# $OpenBSD: Makefile,v 1.5 2018/04/14 22:53:54 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.6 2018/05/25 08:07:13 ajacoutot Exp $
|
||||
|
||||
COMMENT-main= vSphere CLI built on top of govmomi
|
||||
COMMENT-vcsim= vCenter and ESXi API based simulator
|
||||
|
||||
GH_TAGNAME= v0.17.1
|
||||
GH_TAGNAME= v0.18.0
|
||||
GH_ACCOUNT= vmware
|
||||
GH_PROJECT= govmomi
|
||||
|
||||
REVISION= 0
|
||||
|
||||
PKGNAME-main= govc-${GH_TAGNAME:C/^v//}
|
||||
PKGNAME-vcsim= vcsim-${GH_TAGNAME:C/^v//}
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (govmomi-0.17.1.tar.gz) = SPwfAMcchMbsmesNvzbUuq/QjtmKVoHihkPPntApLRU=
|
||||
SIZE (govmomi-0.17.1.tar.gz) = 892477
|
||||
SHA256 (govmomi-0.18.0.tar.gz) = N7qMgzc2O3qeOOuvQgOzCaVkIFXWn5FjaCfDzxnuywI=
|
||||
SIZE (govmomi-0.18.0.tar.gz) = 952150
|
||||
|
@ -1,21 +1,18 @@
|
||||
$OpenBSD: patch-simulator_os_unix_go,v 1.2 2018/03/17 11:41:45 ajacoutot Exp $
|
||||
$OpenBSD: patch-simulator_os_unix_go,v 1.3 2018/05/25 08:07:13 ajacoutot Exp $
|
||||
|
||||
Index: simulator/os_unix.go
|
||||
--- simulator/os_unix.go.orig
|
||||
+++ simulator/os_unix.go
|
||||
@@ -29,12 +29,12 @@ func (ds *Datastore) stat() error {
|
||||
@@ -29,10 +29,10 @@ func (ds *Datastore) stat() error {
|
||||
return err
|
||||
}
|
||||
|
||||
- bsize := uint64(stat.Bsize) / 512
|
||||
+ bsize := uint64(stat.F_bsize) / 512
|
||||
|
||||
- info.FreeSpace = int64(stat.Bfree*bsize) >> 1
|
||||
+ info.FreeSpace = int64(stat.F_bfree*bsize) >> 1
|
||||
- info.FreeSpace = int64(stat.Bfree * uint64(stat.Bsize))
|
||||
+ info.FreeSpace = int64(stat.F_bfree * uint64(stat.F_bsize))
|
||||
|
||||
ds.Summary.FreeSpace = info.FreeSpace
|
||||
- ds.Summary.Capacity = int64(stat.Blocks*bsize) >> 1
|
||||
+ ds.Summary.Capacity = int64(stat.F_blocks*bsize) >> 1
|
||||
- ds.Summary.Capacity = int64(stat.Blocks * uint64(stat.Bsize))
|
||||
+ ds.Summary.Capacity = int64(stat.F_blocks * uint64(stat.F_bsize))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user