Skip to content

Commit

Permalink
fix: Unable to trigger notification
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz committed Jul 1, 2022
1 parent b5a283c commit b03003a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ async fn main() -> Result<()> {
online6: ipv6,
vnstat: args.vnstat,
weight: args.weight,
notify: true,
version: env!("CARGO_PKG_VERSION").to_string(),
..Default::default()
};
Expand All @@ -286,7 +287,7 @@ async fn main() -> Result<()> {
}
}
if args.disable_notify {
stat_base.notify = args.disable_notify;
stat_base.notify = false;
}
if !args.host_type.is_empty() {
stat_base.r#type = args.host_type.to_owned();
Expand Down
1 change: 1 addition & 0 deletions client/stat_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ def main():
stat_base['name'] = options.username
stat_base['weight'] = options.weight
stat_base['vnstat'] = options.vnstat
stat_base['notify'] = True

if len(options.gid) > 0:
stat_base["gid"] = options.gid
Expand Down

0 comments on commit b03003a

Please sign in to comment.