aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'statify')
-rwxr-xr-xstatify4
1 files changed, 2 insertions, 2 deletions
diff --git a/statify b/statify
index b7c9396..0cccff1 100755
--- a/statify
+++ b/statify
@@ -86,9 +86,9 @@ for my $election_name (keys %open_elections) {
my ($count_voters, $count_submit, $count_pending) = (0, 0,0);
for my $votername (@voters) {
$count_voters++;
- if(-f catfile('/home', $votername, ".ballot-${election_name}-submitted")) {
+ if(-e catfile('/home', $votername, ".ballot-${election_name}-submitted")) {
$count_submit++;
- } elsif (-f catfile('/home', $votername, ".ballot-${election_name}")) {
+ } elsif (-e catfile('/home', $votername, ".ballot-${election_name}")) {
$count_pending++;
}
}