File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ func (m *Control) GetData(gid int64) int64 {
215
215
err = db .Find (m .service , & c , "WHERE gid = " + strconv .FormatInt (gid , 10 ))
216
216
m .RUnlock ()
217
217
if err == nil && gid == c .GroupID {
218
- log .Debugf ("[control] plugin %s of grp %d : %x" , m .service , c .GroupID , c .Disable >> 1 )
218
+ log .Debugf ("[control] plugin %s of grp %d : 0x %x" , m .service , c .GroupID , c .Disable >> 1 )
219
219
return c .Disable >> 1
220
220
}
221
221
return 0
@@ -233,8 +233,9 @@ func (m *Control) SetData(groupID int64, data int64) error {
233
233
c .Disable = 1
234
234
}
235
235
}
236
+ c .Disable &= 1
236
237
c .Disable |= data << 1
237
- log .Debugf ("[control] set plugin %s of all : %x" , m .service , data )
238
+ log .Debugf ("[control] set plugin %s of grp %d : 0x %x" , m .service , c . GroupID , data )
238
239
m .Lock ()
239
240
err = db .Insert (m .service , & c )
240
241
m .Unlock ()
You can’t perform that action at this time.
0 commit comments