Skip to content

Commit

Permalink
gh-61 Code indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PacketCrunch committed Sep 5, 2022
1 parent f16a1ba commit c5b218c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ const (
type PolInfo struct {
PolType int
ColorAware bool
CommittedInfoRate uint64 // CIR in Mbps
PeakInfoRate uint64 // PIR in Mbps
CommittedBlkSize uint64 // CBS in bytes
ExcessBlkSize uint64 // EBS in bytes
CommittedInfoRate uint64 // CIR in Mbps
PeakInfoRate uint64 // PIR in Mbps
CommittedBlkSize uint64 // CBS in bytes
ExcessBlkSize uint64 // EBS in bytes
}

type PolObjType uint
Expand Down
1 change: 0 additions & 1 deletion loxinet/qospol.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ func (P *PolH) PolTicker() {
}
} else {
p.DP(DP_STATS_GET)
//fmt.Printf("Pol %s -- stats %v:%v\n", p.Key.PolName, p.Stats.PacketsOk, p.Stats.PacketsNok)
for idx, pObj := range p.PObjs {
var pP *PolObjInfo
pP = &p.PObjs[idx]
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
)

const (
MKFS_SCRIPT = "/usr/local/sbin/mkllb_bpffs"
BPF_FS_CHK_FILE = "/opt/loxilb/dp/bpf/intf_map"
MKFS_SCRIPT = "/usr/local/sbin/mkllb_bpffs"
BPF_FS_CHK_FILE = "/opt/loxilb/dp/bpf/intf_map"
)

func fileExists(fname string) bool {
Expand Down

0 comments on commit c5b218c

Please sign in to comment.