From e77e39a73d9553a692745c5e2f64afa827a57412 Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Tue, 27 Sep 2011 23:28:48 +0200 Subject: reordered old code --- backend/modules/frontend | 7 +++++++ backend/modules/hdmap | 9 --------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/backend/modules/frontend b/backend/modules/frontend index 8c6c87c..0463863 100644 --- a/backend/modules/frontend +++ b/backend/modules/frontend @@ -19,3 +19,10 @@ function send_error() return 1 } +function emit_progress() +{ + percent=$1 + [ "$percent" -gt 100 ] && percent=100 + send progress "$percent" +} + diff --git a/backend/modules/hdmap b/backend/modules/hdmap index 50f1bc5..93d321f 100644 --- a/backend/modules/hdmap +++ b/backend/modules/hdmap @@ -21,15 +21,6 @@ cat <<"EOT" EOT } -# FIXME TODO OLD OUTDATED -function emit_progress() -{ - percent=$1 - [ "$percent" -gt 100 ] && percent=100 - send progress "$percent" -} - - # Synopsis: is_disk /dev/xyz # # This function returns 0 if the supplied argument is a disk. -- cgit v1.0