Image 01


Alexander Kempshall
Scan with ClamAV (extended)

Dolphin Service Menus by Incarus 78 comments


I understand that this is wanted behaviour and the code should be kept easily maintainable.

All I was pointing out was that there is an overhead that might suggest the progress bar is not working as designed.

So waiting for a reply from Xwang1976 to see if what they see can be explained by the above description.

Alex - Jun 04 2014
Scan with ClamAV (extended)

Dolphin Service Menus by Incarus 78 comments

I found there was a significant overhead in using clamscan for scanning small numbers of files.

On my system it takes about 7.318 secs to load the dictionary and scan the smallest file in a directory. Whereas if I scan all 11 files in the directory clamscan takes 7.785 secs so really it takes only 0.467 secs to scan the 11 files.

How this may be represented in the progress bar is that it displays the bar waits 7.318 secs at 0% then progresses to 100% in the remaining 0.467 secs them closes. Is this what you see?

I think this was one of the reasons I swapped over to using clamdscan.

In this scenario the progress bar might not register anything for the first 7 secs and then - Jun 03 2014
Scan with ClamAV (extended)

Dolphin Service Menus by Incarus 78 comments

AS it stands the script uses clamscan as the scanner.

As I have clamd running I've amended the script to use clamdscan instead. Needed a bit of rework to cater for the differences in the information they write to the log files and of course clamd must be running.

The time to scan has reduced quite significantly. I tested on a directory with 1210 files and 9 sub-directories with a size of 3.2G, in the directory there were 19 infected files. My machine is 10 years old with P4 and 2G of memory.

Using clamscan it took on average 14 mins.

Clamdscan took on average 2.5 minutes.

Not quite sure what to do with it. Let me know whoever might be interested. It doesn't cater for symbolic links. So really this is just a heads up.

Alex - Dec 05 2013
Scan with ClamAV (extended)

Dolphin Service Menus by Incarus 78 comments

Firstly can I say this is a great tool and note that Incarus has "retired" as maintainer.

However, I've noticed that the progress bar in kdialog doesn't behave correctly.

I believe this patch resolves the issue -

--- 2013-12-04 16:28:42.137603031 +0000
+++ 2013-12-05 10:40:06.303412347 +0000
@@ -8,7 +8,7 @@
IFS="," #new separator instead of spaces
files=${files_old//\ \//,\/} #from " /" to ",/"
title="ClamScan $version"
date="$(date +"%H-%M-%S_%d-%m-%Y")"
path="$(kde4-config --path services)"
@@ -85,7 +85,7 @@

progress=$(kdialog --title "$title" --progressbar "$wait
-$scan_sentence $complete_amount ($complete_amount_dir directories)")
+$scan_sentence $complete_amount ($complete_amount_dir directories)" $complete_amount)

#qdbus $progress org.kde.kdialog.ProgressDialog.showCancelButton true
- Dec 05 2013