Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frett27 committed Sep 23, 2020
1 parent 69853e8 commit 38216ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions iotmonitor.zig
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ test "no match 2" {
assert(a == null);
}

const AdditionalProcessInformationsTag = enum {
True, False
};

const AdditionalProcessInformation = struct {
// pid is to track the process while running
pid: ?i32 = undefined,
Expand Down Expand Up @@ -128,6 +124,7 @@ fn stripLastWildCard(watchValue: []const u8) ![]const u8 {
}
return watchValue;
}

test "test update time" {
var d = MonitoringInfo{
.timeoutValue = 1,
Expand Down Expand Up @@ -376,7 +373,7 @@ const AllDevices = std.StringHashMap(*MonitoringInfo);
const DiskHash = leveldb.LevelDBHashArray(u8, u8);

// global variables
var globalAllocator: *mem.Allocator = undefined;
const globalAllocator = std.heap.c_allocator;
var alldevices: AllDevices = undefined;
var db: *DiskHash = undefined;

Expand Down Expand Up @@ -613,7 +610,6 @@ fn publishDeviceTimeOut(device: *MonitoringInfo) !void {

// main procedure
pub fn main() !void {
globalAllocator = std.heap.c_allocator;
alldevices = AllDevices.init(globalAllocator);
const configurationFile = "config.toml";
try out.writeAll("Reading the config file\n");
Expand Down
3 changes: 3 additions & 0 deletions snapcraft/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ Install on dev stage
Upload the edge :

snapcraft upload --release=edge iotmonitor*.snap

promote the snap to beta or candidate
snapcraft release iotmonitor 5 beta

0 comments on commit 38216ce

Please sign in to comment.